In php scripting when using mysql, i've used a query as below
$query = "SELECT s.stream_name,s.stream_location,v.video_type,v.video_pid,a.audio_pid,a.audio_type,v.video_resolution,v.video_frame_rate from
streams s join video v on (v.video_sid= s.stream_id) join audio a on(a.audio_sid=s.stream_id and a.audio_prgm_number=v.video_prgm_number)
and v.video_resolution like '%$string'";
Doesn't the like clause take '%string' or the like clause has to be specified with percentage at last of $string like '%$string%'. why doesn't it execute.plz help.