RE: broken code....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux