I have the following insert which I suspected might be failing frequently. I just tested it manually by making a small series of http requests manually from my browser to execute it, making sure there couldn't have been any overlapping requests, and it failed once. To be clear, by "fail" I mean the data was not inserted. There was however no error given of any kind.
Here is the query:
$sql = "INSERT INTO `$dbname`.`$file" . "_data` (`offerid`, `source`, `keyword`, `views`) VALUES ($offerid,'$source','$keyword',1)";
if(!mysql_query($sql)){
errorlogger();
}
Seems awfully simple to me, I can't imagine why it would fail. Any ideas?
EDIT: Was a code typo on my part, question resolved.