Problem with insert using PDO

I didn’t say use it, I said look at it; until you spot the mistake.
You are so close.

Thank you guys.
I am a little under pressure.
I solve this the traditional way, and come back to the PDO-way when I have more time.

Maybe this helps?

( "INSERT INTO messageboard (uname) VALUES (:uname" )
^ ^                         ^     ^        ^      ^ ^
| |                         |     |        |      | |
| |                         +-----+       ???     | |
| |                                               | |
| +------------------matching quotes--------------+ |
|                                                   |
+--------------------matching parentheses-----------+

Note that most ( and " have a matching version, except for the ( before :uname

1 Like

That looks good, I will try that. But seems I have some mess with the connection, it says it does not like my MySQL version, no idea, I have to solve that first, Thank you

It’s not something you should try, it’s a schema that points out the error in your query …

Yes I see, undertand that

I succeeded to insert. Thank you all!!!

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.