spoofy420
04-20-2010, 10:53 PM
Hey,
Is it possible to use if statements to check if a record exists from csv file?
for example I have a column for phone1 and phone2.
I am trying to display it like this:
Phone #: [phone1]
Alternate Phone #: [phone2]
I would like to check and see if phone2 exists for that row from csv and if not then don't display anything. So for example:
Phone #: [phone1]
if ([phone2] NOT empty)
{
echo "Alternate Phone #: [phone2]";
}
Is it possible to use if statements to check if a record exists from csv file?
for example I have a column for phone1 and phone2.
I am trying to display it like this:
Phone #: [phone1]
Alternate Phone #: [phone2]
I would like to check and see if phone2 exists for that row from csv and if not then don't display anything. So for example:
Phone #: [phone1]
if ([phone2] NOT empty)
{
echo "Alternate Phone #: [phone2]";
}