yeah, that is weird, that error message generated after using phpmyadmin to INSERT anything into the table, and I can't reproduce that error on another table in phpmyadmin.
I didn't know that you should specify columns before specifying values in the insert method - i'll try putting that in the code
User Profile
Collapse
-
normally the difficulty is in the 'problem' or 'resolution' columns since these are html text areas where I can enter a large (more than 255) amount of text (text is the data type of the column - wonder if that is a problem), but I can also try and enter the word 'from' in phpmyadmin and the problem continues - ok here's the error from php myadmin when I try and INSERT anything, it actually does INSERT (when I browse the table), but comes up with...Leave a comment:
-
[PHP]mysql_query("IN SERT INTO `Call Log` VALUES ('$date', '$time','$tname ','$me','$calle r','$c_phone',' $problem','$res olution','$stat us','$logger',' $priority','$pr operty',NULL, '$vendor', '$address', '$city', '$state', '$zip')") or die(mysql_error ()); [/PHP]
[PHP]mysql_query("UP DATE `Call Log` SET `date`='$date', `time`='$time', `t_name`='$tnam e',`t_index`='$ tindex',`caller `='$caller',`c_ phone`='$c_phon e',`problem`='$ problem',`resol ution`='$resolu tion',`status`= '$status',`logg er`='$logger',` priority`='$pri ority',`propert y`='$property',...Leave a comment:
-
Cannot INSERT or UPDATE with the word 'from' anywhere
I have a Call log that uses php and html interface to keep track of people calling in for various reasons - if I try to put the word 'from' anywhere in one of the fields I get an internal error message 500, not sure why, but every other word I have tried works fine - just kinda stumbled across this.
Other tables in the same database can store the word 'from', and I'm not using it as a field name (reserved words)
Seems...
No activity results to display
Show More
Leave a comment: