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

PHP operation database: select operation_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:44:57754browse

             $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]. ....
Statement:
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