Jump to content

PHP Mysql search string help please :D


JonnySnip3r

Recommended Posts

Hey guys n gals hope someone can help me with this, anyways i managed (through the help of phpmyadmin) to construct a working search query here it is.

 

SELECT * FROM users WHERE username LIKE '%$search_user%' 

 

ok the thing is how would i get it to search more than one table? i have tried several ways and cant seem to get it to work i would like it not just to search username but firstname and lastname aswell. Thanks :D

 

 

Link to comment
https://forums.phpfreaks.com/topic/206299-php-mysql-search-string-help-please-d/
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.