ajax+php Tutorial No Refresh data Call Classic instance
<title>ajax+php No Refresh data Call Classic instance</title>
s.php file
$Db = new Db ();
$type = ($action = = ' Esfpice ')? 1:2;
$sql = "SELECT * from cn_loupan_city_price where city_id = ' $cid ' and price_type= ' $type '";
$query = $Db->query ($sql);
$str = ";
if ($Db->rows ($query))
{
$result = $Db->fetch ($query, 0);
foreach ($result as $_v = $v)
{
$str. = "
". $v [' City_price_show ']."";
}
Echo $str;
}
Else
{
Exit (' optional! ');
}
Here only Ajax does not speak database tutorial connection
. NET Tutorial ">www.bkjia.c0m original He
http://www.bkjia.com/PHPjc/630585.html www.bkjia.com true http://www.bkjia.com/PHPjc/630585.html techarticle ajax+php Tutorial No refresh Data Call Classic instance! DOCTYPE HTML Public-//w3c//dtd XHTML 1.0 transitional//en HTTP://WWW.W3.ORG/TR/XHTML1/DTD/XHTML1-TRANSITIONAL.DTD HTML xmlns=http ...