mysql_fetch_assoc(’查詢字串’)
header("Content-type: text/html; charset=utf-8");
$link=mysql_connect('localhost','spindo','27559865SS');
$db_selected=mysql_select_db('spindo_dev',$link);
$sql = mysql_query("SELECT * FROM `payments` ", $link);
if(!$sql){
echo "執行失敗".mysql_error();
exit();
}
while($row=mysql_fetch_assoc($sql)){
print_r($row);
echo "<br />";
}
php 與資瞭庫存取比.NET 精簡
回覆刪除