<?php
$conn= mysql_connect('localhost','root','123456') or die('connect error:'.mysql_error());
mysql_select_db('netduzhe');
$result=mysql_query('select * from article');
while ($row = mysql_fetch_array($result, mysql_both)) {
printf ("id: %s name: %s content:%s", $row[0], $row[1],$row[2]);
}
mysql_free_result($result);
?>
注意点
新闻热点
疑难解答