RE: [PHP] Why this doesn't work ?

From: Date: Mon, 24 Oct 2005 17:42:42 +0000
Subject: RE: [PHP] Why this doesn't work ?
Groups: php.general 
Request: Send a blank email to php-general+get-224566@lists.php.net to get a copy of this message
[snip] > $query = "SELECT COUNT (login) FROM formacao WHERE login = '$login'"; > $result = mysql_query($query); > mysql_fetch_row($result); The connection resource is optional. It will use the most recent connection if not specified. [/snip] Then try this.... $query = "SELECT COUNT (login) FROM formacao WHERE login = '".$login."'";

« previous php.general (#224566) next »