skip to Main Content

Mysql – Making a dynamic filter in a sql query

I have this code: <?php $count_item = mysql_query("SELECT * FROM stdevice JOIN stlocation ON stdevice.location = stlocation.stdev_id JOIN device_name ON stdevice.dev_id = device_name.dev_id WHERE dev_name LIKE '%$dev_name%' AND stdev_location_name LIKE '%$stdev_location_name%' AND dev_serial LIKE '%$dev_serial'"); $count = mysql_num_rows($count_item); ?> This…

VIEW QUESTION
Back To Top
Search