Sunday, 1 September 2013

Prepared PDO query returns 0 affected rows

Prepared PDO query returns 0 affected rows

I've literally spent hours Googling and searching and I have no idea what
I'm doing wrong. I'm using POST, and I tried the query myself in
phpMyAdmin, and it worked, but it's not working in PDO, and I don't know
why. It worked when I used mysql_query and what not, but I want to protect
myself from SQL injection.
Here's the code I'm using.
http://i.imgur.com/6U7A1tI.png
http://pastebin.com/raw.php?i=yfxL9FTR
Sorry for not posting the actual code on this site, but the formatting
here is terrible when I copy the code in.

No comments:

Post a Comment