Re: PHP and MySQL SELECT COUNT (*)

From: Date: Wed, 17 Sep 2008 21:58:59 +0000
Subject: Re: PHP and MySQL SELECT COUNT (*)
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-280414@lists.php.net to get a copy of this message
Dan Joseph schreef:
On Wed, Sep 17, 2008 at 2:17 PM, Vinny Gullotta <vgullotta@intermedia.net>wrote:
...
$i[servername] Try: $i['servername'] notice the ' and ' around the name. I've heard you can do w/o those, but I've had issues in the past where it didn't work. ITs also good practice to use 'em.
yes, not quoting the array key will generate an E_NOTICE, php first looks for a constant named **servername** doesn't find it and falls back to using the literal as a string value, namely 'servername' developed with error_reporting set to E_ALL and such things are explained to you.


« previous php.general (#280414) next »