Topic: What am I missing in this code?
Can someone possibly point out what I'm missing here. This code:
http://outgoing.bauchan.org/unix/viewdownloads.txt
is now working fine, and had been doing so until some code tidying I must have made over the last several days sometime, but when I tried to view the categories a short while ago, nothing was displaying within the table. I had to change $result to $dldresult to get things working again. I honestly cannot spot for the life of me why $result would have been reset. Plus, this part:
// If there are no downloads in this category
if (!$db->num_rows($dldresult))
{
message($lang['download']['Empty category']);
}
was obviously noting the result correctly, as the empty category message was not being displayed, and it displayed the empty category message fine when the ! was removed to toggle the test. So...., if someone could berate me for the obvious muppet moment I'm having, I'd highly appreciate it.
Cheers,
Matt