[eluser]mah0001[/eluser]
In your get_num_rows() function check the value for the $this->uri->segment(3), may be it is empty. Just to test, try:
Code:
print $this->db->get("podcasts")->num_rows();exit;
If you see a number printed on the page, there is a problem with your where clause.
or better, enable the profiler to view the actual query being run. Add the following line at the beginning of the do_upload function:
Code:
$this->output->enable_profiler(TRUE);
With the profiler, you can see all the SQL queries list at the bottom of the page.