Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
错误
你们可以提供的任何帮助将不胜感激,我期待收到您的来信,Qwerty。
而不是
$don2=mysql_fetch_assoc( mysql_query(...
尝试
$results2 = mysql_query(...
然后做
while (($don2 = mysql_fetch_assoc($results2)) !== false) { echo '<h2... }
mysql_query设置要运行的查询。mysql_fetch_assoc实际上一次拉下一行。因此,您想在剩余行时循环。
mysql_query
mysql_fetch_assoc