MySQL Forums
Forum List  »  PHP

Re: prepared statement syntax problem
Posted by: Dimitris Papageorgiou
Date: September 08, 2015 10:23PM

this is my latest iteration...but I do not know where to go from here:
$st=$connection->prepare('set @arg = ?%');
$st->bind_param('s',$query);//this is the search string
$st->execute();

stmt = $connection->prepare('select u.name,u.lastname,t.user_type
from users u
join business_users b on u.user_id=b.crid
join buz_usertype t on b.bus_user_type=t.type_id
where u.lastname like=?%')
etc...etc...

Options: ReplyQuote


Subject
Written By
Posted
Re: prepared statement syntax problem
September 08, 2015 10:23PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.