How do I check insert success in my code?
I tried to test my code below, but it doesn't work. It just returns insert every time.
<?PHP
include("connect.php");
$sql = "INSERT INTO details (name , month , description)
SELECT name , month , description
FROM details_temporary WHERE id = 'xxxxxx'";
$dbQuery = mysql_query($sql);
if($dbQuery) {
echo "insert";
}
else {
echo "not insert";
}
?>