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?
the error i'm getting is:
A PHP Error was encountered Severity: Notice Message: Trying to get property of non-object Filename: views/category_view.php Line Number: 25
as for db schema:
table: 'business' id, busname, busowner, busaddress, busicyt, busstate, buszip, busphone, webaddress, category, featured, userid.
table: 'category' id, catname, catdesc.
table: 'photos' id, photoname, photolocation, busid, userid.
table: 'specials' id, specname, specdesc, busid, userid.
table: 'videos' id, title, link, busid.
Pastebin: http://pastebin.com/AQqcvnAb