2017级软件技术4班 扫二维码继续学习 二维码时效为半小时

(0 评价)
,
公开教学

                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               c     

[展开全文]

<?php
$id=mysql_connect("localhost","root","root");
if($id){
 echo"OK,数据库连接成功!<br>";
 $ok=mysql_select_db("student",$id);
 if($id){
  echo"OK,选择数据库成功!";
 }else{
  echo"OH,选择数据库失败,请确认数据库是否存在 ";
 }
    }else{
  echo"OH,数据库连接失败!请检查服务地址、用户名和地址是否正确!
  <br>";
 }
 ?>
 

[展开全文]