i have codes here,
//insert new record now $query = "INSERT INTO topics (title, description, url) VALUES ('$title_tmp', '$descrip_tmp', '$url_tmp'"; mysql_query($query) or die('Error, insert query failed'); $COerr_msgs->err_msgs('add1');
I would like to add conditional statement with the MySQL query,
let say if the insertion of the new record into the database is successful,
then i want to add a successful message that it was successfully added.
Now how could i determine if the new record was successfully inserted?
I guess i have already known this before but maybe i have merely forgotten so.
thank you very much in advance.