Home > Backend Development > PHP Tutorial > PHP operation database: select operation_PHP tutorial

PHP operation database: select operation_PHP tutorial

WBOY
Release: 2016-07-13 17:44:57
Original
813 people have browsed it

             $conn= mysql_connect("127.0.0.1","root","root");
             mysql_select_db("tools",$conn);
             $result= mysql_query("select * from admin");
             while($row=mysql_fetch_array($result))
             {
                 echo $row["name"]." ".$row["pass"];
                 echo"
";
             }
             mysql_close($conn);

?>

 

菲 blog

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/478705.htmlTechArticle?php $conn= mysql_connect(127.0.0.1,root,root); mysql_select_db(tools,$conn); $result= mysql_query(select * from admin); while($row=mysql_fetch_array($result)) { echo $row[name]. ....
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template