dude1 Posted January 12, 2008 Share Posted January 12, 2008 Hi, I want to great a search engine for my web site, i want it so i can add other web sites to the engine and so other users. I am not great at PHP and was wondering if any1 knew any sites that offer a free script or any tutorials that may help?? Many thanks, Joe. Quote Link to comment Share on other sites More sharing options...
revraz Posted January 12, 2008 Share Posted January 12, 2008 Search google for php search engine tutorial Quote Link to comment Share on other sites More sharing options...
phpSensei Posted January 12, 2008 Share Posted January 12, 2008 lol, here is a simple one DONT USE IT! I DIDNT FILTER THE VARS! <?php $keyword = isset($_GET['keywords']) ? "WHERE column_name LIKE '".$_GET['keywords']."%' " : ""; $search = mysql_query("SELECT * FROM table1 $keyword"); while($row = mysql_fetch_array($keyword)){ echo $row['column_1'] . "<br>" . $row['column_2']; } ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.