The most basic PHP classification query Program, PHP classification query Program _php Tutorial

Source: Internet
Author: User

The most basic PHP classification query Program, PHP classification query program


the initial class of PHP classification query programPublic"-//w3c//dtd XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
 
  
 <title>Untitled Document</title>
 Phpif(!Empty($_post[' Sell '])){$conn=mysql_connect("localhost", "root", "root");if(!$conn){ die(' Could not connect the database! ');}mysql_query("SET NAMES UTF8");mysql_query("Set Character_set_client=utf8"); mysql_query("Set Character_set_results=utf8");mysql_select_db("Test",$conn);$sql= "SELECT * from ts1 where name '% Smart Sales% '";$result=mysql_query($sql);Echo'; while$rowMysql_fetch_assoc$result)){Echo;Echo;Echo;}Echo
 
 
  
  '(=( '
  
  
     ' ' 
    '.' 
    '.' 
    ' ' 
   ' ' 
  
'. $row [' ID ']. ''. $row [' name ']. ''. $row [' Image ']. '
';Mysql_close($conn);} //Http://www.pprar.com?> Phpif(!Empty($_post[' Serve '])){$conn=mysql_connect("localhost", "root", "root");if(!$conn){ die(' Could not connect the database! ');}mysql_query("SET NAMES UTF8");mysql_query("Set Character_set_client=utf8"); mysql_query("Set Character_set_results=utf8");mysql_select_db("Test",$conn);$sql= "SELECT * from ts1 where name '% smart customer service% '";$result=mysql_query($sql);Echo'; while$rowMysql_fetch_assoc$result)){Echo;Echo;Echo;}Echo '(=( ' ' ' '.' '.' ' ' ' '
'. $row [' ID ']. ''. $row [' name ']. ''. $row [' Image ']. '
';Mysql_close($conn);}?> Phpif(!Empty($_post[' manager '])){$conn=mysql_connect("localhost", "root", "root");if(!$conn){ die(' Could not connect the database! ');}mysql_query("SET NAMES UTF8");mysql_query("Set Character_set_client=utf8"); mysql_query("Set Character_set_results=utf8");mysql_select_db("Test",$conn);$sql= "SELECT * from Ts1, where name like '% Operating management% '";$result=mysql_query($sql);Echo'; while$rowMysql_fetch_assoc$result)){Echo;Echo;Echo;}Echo '(=( ' ' ' '.' '.' ' ' ' '
'. $row [' ID ']. ''. $row [' name ']. ''. $row [' Image ']. '
';Mysql_close($conn);}?> Phpif(!Empty($_post[' NewEmployee '])){$conn=mysql_connect("localhost", "root", "root");if(!$conn){ die(' Could not connect the database! ');}mysql_query("SET NAMES UTF8");mysql_query("Set Character_set_client=utf8"); mysql_query("Set Character_set_results=utf8");mysql_select_db("Test",$conn);$sql= "SELECT * from ts1 where name '% Smarter New Employee% '";$result=mysql_query($sql);Echo'; while$rowMysql_fetch_assoc$result)){Echo;Echo;Echo;}Echo '(=( ' ' ' '.' '.' ' ' ' '
'. $row [' ID ']. ''. $row [' name ']. ''. $row [' Image ']. '
';Mysql_close($conn);}?> Phpif(!Empty($_post[' Development '])){$conn=mysql_connect("localhost", "root", "root");if(!$conn){ die(' Could not connect the database! ');}mysql_query("SET NAMES UTF8");mysql_query("Set Character_set_client=utf8"); mysql_query("Set Character_set_results=utf8");mysql_select_db("Test",$conn);$sql= "SELECT * from Ts1, where name like '% Personal development% '";$result=mysql_query($sql);Echo'; while$rowMysql_fetch_assoc$result)){Echo;Echo;Echo;}Echo '(=( ' ' ' '.' '.' ' ' ' '
'. $row [' ID ']. ''. $row [' name ']. ''. $row [' Image ']. '
';Mysql_close($conn);}?>


I 0 basic want to learn to write a simplest PHP program Hello World but do not know how to download and install from the Internet and write it?

First learn the basics of PHP, and then go to Baidu to check the function of their own principles, and then to experiment, the success of the experiment on the site to use it.
After these four steps, you have learned a function of this technology.
Learn not PHP Most people have been repeating the first step!

W3school on the tutorial is very basic, very easy to understand, it is recommended to read it first. Then you can look at php100 video tutorial, this is very detailed and easy to understand, and speak a lot of knowledge, I also see this learned.
Or that sentence, see the tutorial is only in the back multiplication formula, only multiplication formula students will never do the application problem, only use it, that is the real learning!

I 0 basic want to learn to write a simplest PHP program Hello World but do not know how to download and install from the Internet and write it out

The simplest program is this:
Echo ' Hello, world! ';
?>

Download PHP can be downloaded in www.php.net, choose the binary code under Windows, you can download the installation package and zip package, I like the zip package, easily unzip to a folder, such as C:\php\ under. Double click on the saved (I use Notepad to edit) PHP file, choose and you just untie the C:\php\php.exe association on it.

http://www.bkjia.com/PHPjc/888533.html www.bkjia.com true http://www.bkjia.com/PHPjc/888533.html techarticle The most basic PHP classification query Program, PHP classification query program The most elementary PHP classification query Program! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtm ...

  • 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.