I'm getting the following error: Column count doesn't match value count at row 1 from this query:
$movetohistory = mysql_query("INSERT INTO $storehistory SELECT * FROM $storetbl WHERE $time - datecreated >= 432000") or die ("Query failed: " . mysql_error() . " Actual query: " . $query);
I've echo'd out $storehistory, $storetbl, $time & all is fine. Both tables have identical columns / datatype. The only thing I could assume is that since $storetbl doesn't have All fields filled out, it's getting a column count error. HOWEVER, I thought specifying SELECT *ALL would over ride that.
If you could point me in the right direction, I'd appreciate that. And if you need more snippets, let me know.
Thanks.