<?php
//创建数据库连接
$conn=mysql_connect("localhost","arvin","123");
//判断数据库存是否连接正常
if(!$conn)
{
die('Could not connect:'.mysql_error());
}
//打开数据库
$selected=mysql_select_db("study",$conn);
//写SQL语句
$sql1="select * from phone";
$result=mysql_query($sql1,$conn);
var_dump($result);
?>