Check if insert is there.
Posted: Sat Jun 14, 2008 4:41 am
Note: Ive tried looking for this but to many posts and not enough keywords and the fact that it 04.40 in the morning. So please forgive me.
Okay, Ive been working on this for a bit and it bugging me.
When I do the check it goes to the home.php. I have a feeling that in the If statement, that it is checking if the file connect. I need to make it to where the If statement actually inserted the form.
Thanks in advance for any tips and or suggestions.
Bryan
Okay, Ive been working on this for a bit and it bugging me.
Code: Select all
$file = mysql_query ("INSERT INTO contacts (nick, fname, lname, email, phnum, cellnum, uid) VALUES ('$nick', '$fname', '$lname', '$email', '$phnum', '$cellnum', '$uid')", $con);
mysql_close($con);
if ($file = 1){
}
else { echo "Contact not saved";
}
header("location: home.php");Thanks in advance for any tips and or suggestions.
Bryan