PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
$result = mysql_query("SELECT column FROM users WHERE username IN (username1,username2,username3)");
I have tried but it tells me unknown column username1 in where claus
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
$namelist = implode(",",$names);
$online = mysql_query("SELECT id FROM users WHERE username IN ('$namelist')") or die(mysql_error());
I've echo'd both, and everything appears to be correct. mysql_num_rows($online) returns 0
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Unless I have each name separated with ',' it treats the whole string as one long name?
Out of curiosity, why doesn't it do this with integers? Because they don't require quotes?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.