Jump to content

This is annoying me now...


Etherwood

Recommended Posts

Can someone help me out here...

 

mysql_query("SELECT * FROM staffdb WHERE fname LIKE '$searchquery'");

 

I want to change fname to a variable, for example WHERE '$searchtype' LIKE. The script works using fname, but whenever changing this to a variable it can't find results from the sql.

Link to comment
https://forums.phpfreaks.com/topic/184209-this-is-annoying-me-now/
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.