query->results)) { //echo "yessir"; date_default_timezone_set('Australia/Sydney'); $date = date('d/m/Y h:i:s a', time()); echo "

" . urldecode($selname) . " ... Social Mentions ... " . $date . " AEST


"; foreach($json_output->query->results->item as $event){ //echo "yes"; echo "

".$event->title." "; if (str_replace("null", "", $event->image) != "") echo ""; echo "

"; echo "

".$event->user."  "; if (str_replace("null", "", $event->userimage) != "") echo ""; echo "

"; echo "

".date('d/m/Y h:i:s a', $event->timestamp)." AEST

"; echo "

" . str_replace("null", "", $event->description) . "

"; } echo "
"; } } ?>