now on the add account page i need to check first if the id is used if not i register it..
//i have this but im wondering how to do the if user id already taken echo done or else register the account..
$q = "SELECT * FROM web_access WHERE client_id ='$client_id'";
$res = mysql_query($q);
$row = mysql_fetch_assoc($res);
//Writes the information to the database
$query =("INSERT INTO web_access (client_id,username,password,date,login_count) ".
"VALUES ('$client_id','$username','$password','$date','$login_count')");
//Writes the photo to the server
$dcdc=mysql_query($query);
if (!$dcdc) {
// Error
echo "Sorry, there was an updating your file $id.";
} else {
//Writes the photo to the server
echo "<meta http-equiv=Refresh content=2;url=main_clients.php>";
}


Sign In
Create Account


Back to top









