I can't seem to figure this out. I'm sending these search terms from a form. I've actually gotten it working with LIKE, but I don't know why the = isn't working.
[code]$data = mysql_query("SELECT * FROM mods WHERE game='$s_game' AND status='$s_status' ORDER BY name");[/code]
I'm pretty sure it's this part in particular.
[QUOTE=SomeFaggot;28248103]I can't seem to figure this out. I'm sending these search terms from a form. I've actually gotten it working with LIKE, but I don't know why the = isn't working.
[code]$data = mysql_query("SELECT * FROM mods WHERE game='$s_game' AND status='$s_status' ORDER BY name");[/code]
I'm pretty sure it's this part in particular.[/QUOTE]
Could you post what you're passing for $s_game and $s_status?
[QUOTE=cas97;28248496][/QUOTE]
I figured out it was the use of underscores.
PDO database class for the win. I'm going to keep spamming it until you people listen. It's sooo much nicer than your standard PHP database functions, it's built-in if you have the pdo shared object installed and way more secure.
Do it!
Sorry, you need to Log In to post a reply to this thread.