Jump to content
php.lv forumi

Lietotāju pārbaude


ziedinjsh

Recommended Posts

$existing_users=array('roshan','mike','jason'); 
$user_name=$_POST['user_name'];
if (in_array($user_name, $existing_users)) {
echo "no";
} else{
echo "yes";
}

 

Kā šo var uztaisīt lai lasa no datubāzes?

Edited by ziedinjsh
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...