What did you do to fix it? -----Original Message----- From: Eternity Records Webmaster [mailto:webmaster@xxxxxxxxxxxxxxxxxxx] Sent: Saturday, December 10, 2005 7:10 PM To: php-general@xxxxxxxxxxxxx Subject: RE: broken code.... Got it fixed now... tnx... -----Original Message----- From: Ben Blay [mailto:benblay@xxxxxxxxx] Sent: Friday, December 09, 2005 9:46 AM To: Mark Steudel Cc: php-general@xxxxxxxxxxxxx Subject: Re: broken code.... I believe the difference between using =& and = is that the former passes the value by reference, though I've never been clear about the benefits of using one over the other when it comes to PEAR:DB (the PEAR:DB documentation uses =& extensively, so presumably it is the better method). Ben On 12/8/05, Mark Steudel <mark@xxxxxxxxxxxx> wrote: > Good catch: > > So I normally do > > $results =& $db->query ( "SELECT * FROM table" ); > > What is the difference between using the & and not using the &. > > -----Original Message----- > From: Ben Blay [mailto:benblay@xxxxxxxxx] > Sent: Thursday, December 08, 2005 10:27 AM > To: php-general@xxxxxxxxxxxxx > Subject: Re: broken code.... > > > $results->query('select * from eternityrecords.journal'); > > Should this not be: > $results = $db->query('select * from eternityrecords.journal'); > > See: > http://pear.php.net/manual/en/package.database.db.db-result.fetchinto. > php > > Ben > > -- > PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: > http://www.php.net/unsub.php > > -- > PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: > http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php