I'm trying to use PHP to INSERT data into a valid MySQL table. Here's my query string:
CODE
$sql = "INSERT INTO comic
VALUES ('NULL', '$name[$loop]', '$release')";
VALUES ('NULL', '$name[$loop]', '$release')";
What am I doing wrong?
EDIT: Well, just to be safe, I changed $name[$loop] with a temporary variable $nametmp as well as checked my table -- table name had been created with an older version of my table creation code and the name had been set to an older value. Once fiixed, it worked like a charm - double checked with PHPMyAdmin, the data was written successfully... Just one of those days I guess.
