Jump to content

mysql problem


mforan

Recommended Posts

ok so i got:

 

$query = "SELECT * FROM users WHERE name LIKE '%".$buildchange[0]."%' HAVING rank='".$buildchange[1]."' ORDER BY land DESC";

 

 

my question is that for  example, the rank name gets submitted, but what if i want to have a HAVING anything? like a %. it doesn't seem to work no matter what i do.

is there a better approach for this, or is the only way to do it under LIKE?

 

Link to comment
https://forums.phpfreaks.com/topic/95873-mysql-problem/
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.