You are here: RE: [PHP] broken code.... « PHP « IT news, forums, messages
RE: [PHP] broken code....

Posted by "Mark Steudel" on 12/08/05 23:52

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@gmail.com]
Sent: Thursday, December 08, 2005 10:27 AM
To: php-general@lists.php.net
Subject: Re: [PHP] 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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация