21,886
社区成员
发帖
与我相关
我的任务
分享
<?php
$connection = mysql_connect( "localhost", "root", "icecream" ) ;
mysql_select_db( "winestore", $connection ) ;
$result = mysql_query( "SELECT surname, firstname, city FROM customer;" ) ;
while( $row = mysql_fetch_array( $result ) )
{
print_r( "$row['surname']" ) ;
}
?>
print_r( $row['surname']) ;