Hey there,
im trying to create a script which is checking of a set of values matches a set of values earlier entered in a mysql database.
Now the problem is how do i match those...
right now im trying this:
$getuser="SELECT * FROM bl_users WHERE id='$userID'";
$getuser2=mysql_query($getuser) or die("Could not get contact info");
$getuser3=mysql_fetch_array($getuser2);
if($edit_name==$getuser3[name] && $edit_url==$getuser3[name] && $edit_script==$getuser3[script] && $edit_message==$getuser3[description] && $edit_version==$getuser3[version]) {
print "All your info is the same. No need to change it!";
} elseif($edit_name && $edit_url && $edit_message && edit_version ) {
print "just continue";
} else {
echo "<META HTTP-EQUIV = 'Refresh' Content = '2; URL =edit.php?userID=$userID'>";
echo "All fields must be filled in<br>Redirecting to form....";
}
but this is not working, it seems to skip the matchin part and just continues to the elseif...
anyone got a idea on this? Thanks in advance! 😉