using php variable in mysql LIKE

encogeoklok

New Member
I want to write a mysql query something like this:\[quote\] select * from books where title like '$title_';\[/quote\]The $title is a php variable. when i run the above query, it throws an error saying '$title_ variable not found'How can I achieve this?Thanks..
 
Back
Top