I'm wondering how I can hide a parent div if there's no content to display there, so far I've been using jQuery to hide the empty div but as the site is large sometimes the wrapper is displayed before the jQuery hides it again.
Hi thanks, I don't mind using another if statement but I need to make the new if statement include the answer_id == 1 is it possible to include that e.g. -
I think I got lost here. Because you're specifically looking for the answer_id to be "1", won't you always only get one result? I guess I'm making an assumption that answer_id is an id field (primary key) on a table. ?