Jump to content

Search Engine


dude1

Recommended Posts

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'];

}


?>

Link to comment
https://forums.phpfreaks.com/topic/85691-search-engine/#findComment-437336
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.