Desktop Center (ii) database write _php tutorial

Source: Internet
Author: User
Tags password protection
One, the following is the database write HTML program, you can join the password function. Send the password into a variable into the following PHP (as the current mainstream development language) program. This allows for password protection:


<title>Database</title>






Database management Program



(The best combination with PHP). PHP (as the current mainstream development language) "> View database Data


(as the current mainstream development language) "> Change information







Second, the process of processing the submitted PHP (as the current mainstream development language) program:

<title>Find</title>


Data for the database


MySQL (best combination with PHP) _connect ("localhost", "username", "password") or Die ("Cannot join database!");
$query = "INSERT into $jpg values ($id, $url, $mess, $fromx, $url 1, $mess 1, $fromx 1, $url 2, $mess 2, $fromx 2, $url 3, $mess 3,$ FROMX3) ";
$result =mysql (and PHP collocation of the best combination) _db_query ("elong", $query); Perform write

if (the best combination of MySQL (and PHP collocation) _affected_rows () ==1)
{
echo "Data has been added to the database $jpg

";
echo "









http://www.bkjia.com/PHPjc/509077.html www.bkjia.com true http://www.bkjia.com/PHPjc/509077.html techarticle One, the following is the database write HTML program, you can join the password function. Send the password into a variable into the following PHP (as the current mainstream development language) program. This is ...

  • N N N N N N N N N N N
    Id $id
    URL address $url
    Small map $mess
    Description $fromx
    URL Address 1 $url 1

    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.