Like always, this is probably an easy one that I have overseen while browsing for the solution.
I have the following query:
' INSERT INTO '.$this->ticket_attachment_table.' (SELECT * FROM '.$this->email_attachment_table.' WHERE emailId = '.mysql_real_escape_string($row['id']).');'
this just copies the items out of one table and into the other.
However this usually works fine when the table is a complete duplicate, however this one has one different field name.
So, say all the field titles are the same, except in one table the field headings for the same field are messageId and emailId, can I incorporate a kind of messageId AS emailId somewhere in this same query?
Try this ::