try
$query="Select pass from members where uname='$username'";
$result = mysql_query($query) or die("You are not authorized to be here.");

the mysql_query command is executing the statement

morgan


At 10:40 AM 4/16/2001, Greg K wrote:
>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
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to