*facepalm*
Got it. Thanks, and thanks for that mod.
PHP Code:
$result = $conn->query($sql);
if ($result->num_rows > 0) {
// output data of each row
while($row = $result->fetch_array()) {
$scenes[] = $row;
}
} else { $threads = "0 results";}
foreach ($scenes as $scene){
$listscenes .= '<a href="forum/showthread.php?' . $scene["threadid"]. '">' . $scene["title"]. '</a>'.'<br />';
}
$conn->close();
return $listscenes;