DKY;10963537 wrote:
{$RowDELIV_DATE = convert_datetime($Row["DELIV_DATE"]." 12:00:00");}
and I keep getting errors because it's trying to run a null value through my convert_datetime function.
No you're not. Even if $Row["DELIV_DATE"] did contain null, empty string or whatever, you are pasing " 12:00:00" to your conversion function. It's also super easy to check what is actually passed to this function by putting echo or error_log at the very top of it
function convert_datetime($arg) {
echo $arg;
...
}
I know that using UC language constructs or disregarding casing is ok for functions. It is however not for variables. Since pretty much everyone is using if and else while you're writing IF and ELSE, could it be that you are ignoring variable casing? Consider
function out($s) { echo $s; }
$string = 'Text';
OUT($string); // function call ok, variable ok
out($STRING); // function call ok, no variable $STRING
How about trying to post relevant code instead of everything? Say perhaps code for the convert_date function, which I seriously doubt is 13k characters.