Jump to content

exploding _POST for a query


squiblo

Recommended Posts

My query searches for people in the database.

 

If the user searches "bob" it with output "bob marley".

If the user searches "marley" it will output "bob marley" also.

 

If the user searches "bob marley" nothing will be outputted

 

how can i explode this...

$search = $_POST['search_friend'];

 

to make this query work properly...

$search_name_check = mysql_query("SELECT * FROM page_set_data WHERE forname='$search' OR surname='$search'");

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/191376-exploding-_post-for-a-query/
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.