So basically I'm trying to determine of a record was actually inserted into my database with the insert statement in MySQL.
My code is as follows:
From here I would like to send an email to the new member but before I do I need to know for sure that the record was inserted.Code:$sQuery = "INSERT INTO `$database`.`Users` (`User` ,`Email` ,`Email_verified`) VALUES (NULL , '$sEmail', '0')"; mysql_query($sQuery);
I have already setup checks before this step, that makes sure everything is totally ok before the insert but I would like it as a last precaution.
If anyone knows the proper syntax to check if a record was inserted into the MySQL database that would be great. I'm still going to search the net and find it...if I do I will post it here...
Submit Your Article
Forum Rules

Reply With Quote
