executing mysql LIKE query

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: executing mysql LIKE query

Post by seandisanti » Fri May 03, 2013 12:21 pm

The error means that you prepared the statement to expect a specific number of arguments, but you then executed it with fewer.

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: executing mysql LIKE query

Post by seandisanti » Fri May 10, 2013 10:25 am

you have to use full variable names to use 'like'. see here: http://www.dreamincode.net/forums/topic ... with-like/

seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: executing mysql LIKE query

Post by seandisanti » Fri May 10, 2013 10:27 am

of course you could just use PDO, it's better; just saying

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests