ajax+php No Refresh Data Call Classic Instance _php tutorial

Source: Internet
Author: User
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 ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.