function DisplayPoints()
{
$con = mysql_connect("localhost", "grame2_admin", "password") ;
if (!$con) {
die("Can not connected: " . mysql_error());
}
mysql_select_db("grame2_webpage",$con);
$sql = "SELECT points FROM tablename WHERE username = $username";
$myData = mysql_query($sql,$con);
while($record = mysql_fetch_array($myData)){
它回显信息,即第 164 行存在错误,即 LINE ABOVE THIS。
echo $record['points'] ;
}
mysql_close($con);
}
主要思想是从网页中的特定用户中回显 INT。请帮忙!:)