Jump to content

[SOLVED] Searching Big Database


ballouta

Recommended Posts

Heres what im using it queries my 800,000 row table in less than 0.003 seconds

 

$search=$_REQUEST['search_id'];
$search = mysql_real_escape_string($search);

$result = mysql_query("SELECT distinct * from video  where (title like '%{$search}%') group by title limit 40 );

   while  ( $tmp = mysql_fetch_assoc( $result ) )
    {
        echo $tmp['whatever']."<br>";
    }

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.