Wallpapers Forums Login

Using If And Else In Php To Find If A Name Is In A Database

how can i write a script in php to query a database to find out if the name is in the database?
hostman Fri Dec 10, 2010
the best way is to use a loop to go through all the elements in your array - try the do while loop, that's why i usually use when i try to run something like that. if you need more help let me know. i hope you figure it out.
koranmaloll Fri Dec 10, 2010
its something like this:

$qry = "SELECT name FROM UsersDb";

<?php
if(name=="andrew"){
echo 'i found it';
}else{
echo 'i did not find it';
}
?>
hostman Fri Dec 10, 2010
you're gonna have to give me more info than that

Related Content

Information

Share

wallpaperama | Wallpapers | Forums | Terms Of Service

copyright © 2013 wallpaperama - All Rights Reserved - Last Updated Mon May 06, 2013 (-8 GMT)
Powered by: Webune Forums V5