Hi all,
Does anyone know of how I can disable case sensitivity for the LIKE
function in SQL?
Currently the SQL statement looks like:
$query = "SELECT * FROM itrader_games WHERE console='$conso le' AND
genre='$genre' AND title LIKE '%$title%' ";
(thanks Tom Thackrey for the above)
Also, I have tried to make it so that if 'any' is selected for the
hardcoded variables (errmm does that make sense?) the valeu of Any is *
and put into the SQL statement - sorry i dont know how to explain this
but this is the HTML used
<option value="*">Any</option>
If anyone can make sense of my drivel and can help it would be greatly
appreciated!
Thanks,
NK
Does anyone know of how I can disable case sensitivity for the LIKE
function in SQL?
Currently the SQL statement looks like:
$query = "SELECT * FROM itrader_games WHERE console='$conso le' AND
genre='$genre' AND title LIKE '%$title%' ";
(thanks Tom Thackrey for the above)
Also, I have tried to make it so that if 'any' is selected for the
hardcoded variables (errmm does that make sense?) the valeu of Any is *
and put into the SQL statement - sorry i dont know how to explain this
but this is the HTML used
<option value="*">Any</option>
If anyone can make sense of my drivel and can help it would be greatly
appreciated!
Thanks,
NK
Comment