Hi... i am having problems with my coding because the if function doesn't seem to work... can you guys find out why???
here is the code i made:
mysql_connect($localhost,$username,$dbpassword);
mysql_select_db($dbname);
$password = strtolower($password);
$sqlQuery = "select * from unimax where id = '$id' and password = '$password'";
$result = mysql_query($sqlQuery);
if ($result) {
$text1 = "<font face='Arial' size='1'><br>
You can update your profile by simply changing the contents of your previous information<br>
below. Click the submit button only once when your finish updating your info.</font>";
$text2= "<p><font face='arial' size='2'>Note: The fields with " <font color='#FF0000'><strong>*</strong></font>
" must be filled up.</font><br><br><br>";
}
else {
header ("Location: http://www.philmetro.com/~ralph/unimax/members2.htm");
}
?>