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

From: Date: Mon, 24 Oct 2005 17:39:40 +0000
Subject: RE: [PHP] Why this doesn't work ?
Groups: php.general 
Request: Send a blank email to php-general+get-224564@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); > --- > [/snip] > > mysql_query() requires a connections resource > > $result = mysql_query($query, $myConnection); The connection resource is optional. It will use the most recent connection if not specified. JM

« previous php.general (#224564) next »