GIF89a;
| Direktori : /home/serb/www/ |
| Current File : /home/serb/www/autocomplete.php |
<? session_start();
include("lib/globals.php");
include("lib/common.php");
include("lib/functions.php");
?>
<?
$q=$_GET['q'];
$my_data=mysql_real_escape_string($q);
$sql="SELECT distinct user_name_screen FROM escort_details WHERE hair_color LIKE '$q%' or orientation LIKE '$q%' or hair_style LIKE '$q%' or ethencity LIKE '$q%' ORDER BY id";
$result = execute_query($sql);
if($result)
{
while($row=mysql_fetch_array($result))
{
echo $row['user_name_screen']."\n";
}
}
?>