I was writting or die statements for my mysql statements and I was wondering if there was a way I could reference the line they occurred on without hard coding it in. Basically like when PHP returns and error and tells you what line its on.
Right now, I basically give a vauge descritpion of the statement that failed along with the mysql_error() function.
Example:
Code: Select all
mysql_query("UPDATE eo_tbl02 SET blendsWW = CONCAT(blendsWW, '$appendLink') WHERE productNumber='$pn'") or die("died while appending a bww, " . mysql_error());
Any thoughts?
--W