ตัวอย่างโค้ดที่มีปัญหา
โค้ด: เลือกทั้งหมด
while ($row = $db->sql_fetchrow($result))
{
$topic_list[] = (int) $row['topic_id'];
}
return $topic_list;
โค้ด: เลือกทั้งหมด
$topic_list = array();
while ($row = $db->sql_fetchrow($result))
{
$topic_list[] = (int) $row['topic_id'];
}
return $topic_list;