Jump to content

what should i add to my basic search ??


yami007

Recommended Posts

this is my code :

<?php
if(isset($_GET['query'])) {

				$query = "SELECT * FROM messages WHERE name LIKE '%{$_GET['query']}%' OR message LIKE '%{$_GET['query']}%' ";
				$result_set = mysql_query($query);
				while ($result = mysql_fetch_array($result_set)) {
					echo $result['name'].'<br />';
					echo $result['message'].'<br />';
				}

		}
?>

Link to comment
https://forums.phpfreaks.com/topic/176485-what-should-i-add-to-my-basic-search/
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.