Jump to content

wildcards


timlondon

Recommended Posts

If I'm looking for all instances of "alpha" (as in alpha01, alpha02, alphawhatever) from the field named "account" is there a way I can use a wildcard such as alpha* in my select statement? I'm specifically trying to do it by using the following but I don't know how:

 

$sql = mysql_query("SELECT * FROM user WHERE account='$member' AND $scanfield='$scanarea'");

 

for the above $member = "alpha" and $scanfield = country and $scanarea = "en".

 

 

Link to comment
https://forums.phpfreaks.com/topic/37768-wildcards/
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.