Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

 
 Re: Fetch Row = null
Author:  (---.scpe.powergate.ca)
Date:   02-17-05 09:31

if (!($result = mysql_db_query($DB, "select userid from wb_auth where userid='$userid'"))) {
echo "could not run query"; //query failure, not no result found
exit();
}

if (mysql_num_rows($result)==0){
echo "Username not present";
//do something else
die();
}else{
$row=mysql_fetch_array($result)){
echo "Here is your ID: <b>".$row[userid]."</b></font>";

}

 Topics Author  Date
 Fetch Row = null  new
Bowmah 02-16-05 15:22 
 Re: Fetch Row = null  new
Bowmah 02-16-05 15:22 
 Re: Fetch Row = null  new
Bowmah 02-16-05 22:00 
 Re: Fetch Row = null  new
bastien 02-17-05 09:31 
 Re: Fetch Row = null  new
Bowmah 02-17-05 09:58 
Go to Top  |  Go to Topic  |  Flat View  |  Search 
  |  
New Topic
 Reply To This Message
 Your Name:
 Your Email:
 Subject:
Email replies to this thread, to the address above.
    

Provided By
Phorum