September 29, 2011

Week 4: 測試mysql

同資料夾新增文字檔貼上
"
exit();
}else{
printf("<Br> 連結主機 %s 成功 <br>", $hostName);
exit();
}
?>
"
帳號root
密碼12345
-----------------

mysqltest.php

<?php
$userName="root"; //帳號
$password="12345";  //密碼
$hostName="localHost"; //主機(Server)名稱

//建立資料連結
if (!(@ $link=mysql_connect($hostName, $userName, $password))){
printf("<Br> 連結主機 %s 發生錯誤 <br>", $hostName);
exit();
}else{
printf("<Br> 連結主機 %s 成功 <br>", $hostName);
exit();
}
?>

0推薦此文章
Today's Visitors: 0 Total Visitors: 10
Personal Category: Uncategorized Articles Topic: feeling / personal / murmur
歷史上的今天:
[Trackback URL]

Reply
Post A Comment









Yes No



Please input the magic number:

( Prevent the annoy garbage messages )
( What if you cannot see the numbers? )
Please input the magic number

誰來收藏
Loading ...
unlog_NVPO 0