Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 2000051

Re: [PHP3] Maintaining the scope of a variable From: Richard Lynch (richard <email protected>)
Date: 05/15/00

In article <001701bfbccf$0f006700$c0e6c5cb <email protected>>, usha <email protected>
("usha") wrote:

> I don't want to add $rows to the above URL as already there are lots of =
> variables I have to pass.

If there's already lots there, one more won't matter much...

Be warned: The number of rows could change between one page and the next
if your database is edited online "live"...

Be sure you are planning for that possibility.

Doing an extra "SELECT" to get the current row count is not a huge
performance loss: Far less than opening the connection in the first
place, so if you are already connected to the database in subsequent
pages, go ahead an do the count again.

-- 
Richard Lynch                | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA        | http://www.L-I-E.com/artists.htm
http://www.zend.com          | (this has nothing to do with Zend, duh!)

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>