RE: [PHP] Why this doesn't work ?
| From: | Jay Blanchard | Date: | Mon, 24 Oct 2005 17:36:56 +0000 |
| Subject: | RE: [PHP] Why this doesn't work ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-224563@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);