CodeIgniter Forums
Postback problem? Not getting data back from DB - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Postback problem? Not getting data back from DB (/showthread.php?tid=29087)



Postback problem? Not getting data back from DB - El Forum - 03-29-2010

[eluser]jshultz[/eluser]
I'm not getting back data from my DB like I'm expecting. I know that I can get data from the DB because I have other functions working. With this page, what I'm trying to do is the following:

If no postback, then I would like it to echo "No Category Selected"

If a category has been chosen, then I would like for it to get that data from the DB and show it on the page. I'm sure I can do this all in one view, I'm just not doing something right. Can someone help please?


Pastebin: http://pastebin.com/AQqcvnAb


Postback problem? Not getting data back from DB - El Forum - 03-30-2010

[eluser]InsiteFX[/eluser]
Could you please show your code...

Enjoy
InsiteFX


Postback problem? Not getting data back from DB - El Forum - 03-30-2010

[eluser]jshultz[/eluser]
I did? I linked to it right here: http://pastebin.com/AQqcvnAb


Postback problem? Not getting data back from DB - El Forum - 03-30-2010

[eluser]K-Fella[/eluser]
Have you tried doing a var_dump or printr of the result to see if any results are being returned from the db call?


Postback problem? Not getting data back from DB - El Forum - 03-30-2010

[eluser]jshultz[/eluser]
[quote author="K-Fella" date="1269981325"]Have you tried doing a var_dump or printr of the result to see if any results are being returned from the db call?[/quote]


I did a print_r and here's the results:

Resource id #31Resource id #48Array
(
)
Array
(
)
01