Re: [PHP] resource id #2

2001-04-16 Thread Tobias Talltorp
Sorry... Read morgans topic aswell... Didn“t see the duplicate mysql_query(). :) // Tobias ""Tobias Talltorp"" <[EMAIL PROTECTED]> wrote in message 9betpl$nb0$[EMAIL PROTECTED]">news:9betpl$nb0$[EMAIL PROTECTED]... > > $query=mysql_query("Select pass from members where uname='$username'"); > > $

Re: [PHP] resource id #2

2001-04-16 Thread Ulf Wendel
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 w

Re: [PHP] resource id #2

2001-04-16 Thread Tobias Talltorp
> $query=mysql_query("Select pass from members where uname='$username'"); > $result = mysql_query($query) > or die("You are not authorized to be here."); What you are doing is checking if the query is valid. Your die() would print only if you had a faulty query (try changing pass to pass2), but

Re: [PHP] resource id #2

2001-04-16 Thread Morgan Curley
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 me