If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? ( `linkid`, `title`, `description`, `date`, `facebook` ) VALUES ( ?, ' at line 1

Is it possible that the selected table cannot be a (?) value? I have done this no problem with basic sql queries in the past...

Yeah, I don't think you can use place-holders for anything except literal values. You'll need to use PHP variables concatenated (or interpolated) there, I'm afraid -- which means if they come from an external source you'll need to do some sort of validation and/or sanitation of them.

PS: another option would be to create a stored procedure, to which you could pass a parameter for the table name, I think.

"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation