Problem with sql query
Posted 04 September 2006 - 01:03 AM
$sql = 'select id,clase,tema,ritmo,autor,arreglo,fecha,kar,nuevo,archivo from temas where CLASE like I NEED INCLUDE $tipo HERE order by ' . $sort;
Thanks in advanced....
Posted 04 September 2006 - 01:14 AM
$sql = "select id,clase,tema,ritmo,autor,arreglo,fecha,kar,nuevo,archivo from temas where CLASE like '" . $tipo . "' HERE order by " . $sort;
you may want to use '%" . $tipo . "%'
I still concatenate vars in a double quoted string so that I can see them a little easier in my chosen editor you don't have to for it to work but its just a habit (i think a good one) of mine
Posted 04 September 2006 - 05:37 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users