Jump to content

Problem with sql query


jeva39

Recommended Posts

$tipo= $_GET['clas'];
$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
Link to comment
https://forums.phpfreaks.com/topic/19627-problem-with-sql-query/#findComment-85468
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.