Jump to content

Empty Table Cell


SkyRanger

Recommended Posts

Figured it out, for 1 thing, had the stuff backwards, and second should have used !empty instead of isset:

 

$eventstart = $rown['starttime'];
if(!empty($eventstart)) {
     echo $rown['starttime'];
} else {
     echo "All Day";
}

normally i only use isset() for checking if a submit button has been pressed...it only really checks if the variable exists..not if it contains data

Link to comment
https://forums.phpfreaks.com/topic/237264-empty-table-cell/#findComment-1219286
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.