Ok i tried what you said (changed Tags to Tag, that was my error before), trying to bind the values however i got this error code this time
o_id = 0
Array
(
[0] => no
[1] => yes
)
Binding :o_id and 0
Binding :tags and no
Binding :o_id and 0
Binding :tags and yes
there was a problem creating the comment tableSQLSTATE[42000]: Syntax error or access violation: 1064 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 '( id INT NOT NULL PRIMARY AUTO_INCREMENT, Name VARCHAR(9999) NOT NULL, Email ' at line 2
which means taht the error is in teh comments, so ill check my database to see if it worked
And sure enough it did work thanks kduv, ii think ill do what you said and also do this type of table for comments as well so that error can be ignored!
srry uploaded just as you did
if your still interested the error in phpmyadmin came out as
#1064 - 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 ''.$tableName.'
(
id INT NOT NULL PRIMARY AUTO_INCREMENT,
Name VARCHAR(9999' at line 1
i think that meens i concentated wrong, however just a quick question why did bonding work?
When you bind the parameters VIA the execute() method, it does it by calling bindParam() which takes the variables by reference, where bindValue doesn’t.