$query = mysql_query("SELECT * FROM news WHERE id = '{$_GET['id']}'"); $news = mysql_fetch_assoc($query);
$sql84 = mysql_query("SELECT username FROM users WHERE id = '".$news['user_id']."'") 或 exit(mysql_error()); $author = mysql_fetch_array($sql84);
我有更好的方法吗?也许加入?看起来怎么样