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