Check if value is null or empty
Posted: Mon Nov 28, 2005 10:31 am
I have this piece of code
This is stats for a american football program
PY is for Previous Yards and YDS is yard this week
What if a Running Back has -3 yards in week 1 since he isnt >0 it will never regester correctly. What could work?
Dont I need to see if it is null or empty.
Matt
This is stats for a american football program
Code: Select all
$py = ($py > 0) ? $yds-$py : $yds;What if a Running Back has -3 yards in week 1 since he isnt >0 it will never regester correctly. What could work?
Dont I need to see if it is null or empty.
Matt