Re: resource id #2
| From: | Ulf Wendel | Date: | Mon, 16 Apr 2001 14:04:57 +0000 |
| Subject: | Re: resource id #2 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-48749@lists.php.net to get a copy of this message | ||
Greg K schrieb:
> I am trying to run a query and in my log I am getting a message the message
> resource id #2.
>
> $query=mysql_query("Select pass from members where uname='$username'");
> $result = mysql_query($query)
> or die("You are not authorized to be here.");
>
> Can someone tell me what I am doing wrong and guide me in the right
> direction
Please check the docs http://www.php.net/manual/en/ref.mysql.php /
http://www.php.net/manual/en/function.mysql-fetch-row.php
(don't forget
to read the user comments!) and the usual sites for tutorials e.g.
http://www.phpbuilder.com .
Ulf
--
Neu: PEAR Menu 3 - Navigationsstrukturen dynamisch dargestellt
http://www.ulf-wendel.de/projekte/menu/tutorial.php
|
http://www.phpdoc.de