<code> 代码如下:
if
(!
$con
)
{
die
(
'Could not connect: '
. mysql_error());}
else
{
echo
"nice"
.
"<br/>"
;}
mysql_select_db(
"test"
,
$con
);
echo
"get the databse"
.
"<br/>"
;
$result
=mysql_query(
"select * from hat_province"
);
echo
"get the table"
.
"<br/>"
;
while
(
$row
= mysql_fetch_array(
$result
))
{
echo
$row
[
'id'
] .
" "
.
$row
[
'province'
];
echo
"<br />"
;
}
在
while
(
$row
= mysql_fetch_array(
$result
))这里总是停住出不了结果,请问到底为什么出不了结果</code>