How PHP and Page values are written

Source: Internet
Author: User
How to write PHP with page value?
The effect I want is








do {?> Title } while ($row _recordset_task = Mysql_fetch_assoc ($Recordset _task))?>
">



The content of the title is displayed here, the content is in, the database value is $row_recordset_task[' Csa_text ']





------Solution--------------------
Do you want to not refresh the page? That's the way to use Ajax or stupid point is to make a new page style with the original page to jump to the new page with the original interface almost as if the visual is not refreshing the same
------Solution--------------------
Agreed to use ajax!!! upstairs.
------Solution--------------------
PHP Code
  Error: ". Mysql_error ());        if (mysql_affected_rows () > 0) {$titles = array ();        while ($rows = Mysql_fetch_array (MYSQL_ASSOC)) {Array_push ($titles, $rows); }}?>
  
) ">
Error: ". Mysql_error ()); if (mysql_affected_rows () > 0) {$rows = Mysql_fetch_array (MYSQL_ASSOC); } print_r ($rows); Mysql_close ();}? >
------Solution--------------------
Study the discuss

PHP Code

/* Created on [2012-5-16] author[yushuai.niu] */
#查询标题信息
$sql = "SELECT * FROM table";
$res =mysql_query ($sql);
if (! $res) Die ("SQL: {$sql}
Error: ". Mysql_error ());
if (Mys ...
  • 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.