I am using the following code in my script to perform a SQL operation. The only problem is that if there is an issue with the query it does not actually give me the error to track down the problem. How do I alter this to display the error message MySQL reports?
$query1 = "TRUNCATE TABLE ALIASES";
$result = mysql_query($query1);
echo "ALIASES Table Reset
echo "There was a problem resetting ALIASES