can anyone tell me why this while loop fails?
==================================================
while ($row = mysql_fetch_array($sql_result)):
$phone = $row["phone"];
$date = $row["date"];
if ($phone == "$_POST[areacode]$_POST[prefix]$_POST[suffix]"):
if ($date == NULL):
$date = "today";
echo "<B><I>Congratulations!</B></I>
<P>
<B>$_POST[areacode]-$_POST[prefix]-$_POST[suffix]</B> is qualified with
an available date of <B>$date</B>.
";
elseif ($date != NULL):
echo "<B><I>Congratulations!</I></B>
<P>
<B>$_POST[areacode]-$_POST[prefix]-$_POST[suffix]</B> is qualified with
a first available date of <B>$date</B>.
";
else:
echo "<B>Sorry! $_POST[areacode]-$_POST[prefix]-$_POST[suffix]</B> is
not available at this time.";
endif;
endif;
endwhile;
==================================================
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP] checkboxes & php Greg
- RE: [PHP] checkboxes & php Edward Peloke
- Re: [PHP] checkboxes & php Greg
- Re: [PHP] checkboxes & php Richard Whitney
- Re: [PHP] WHILE IF/ELSE loop not worki... Jay Fitzgerald
- Re: [PHP] WHILE IF/ELSE loop not ... Rick Emery
- Re: [PHP] WHILE IF/ELSE loop ... Jason Wong
- Re: [PHP] checkboxes & php Rick Emery
- Re: [PHP] checkboxes & php Chris Boget
- Re: [PHP] checkboxes & ph... Richard Whitney
- Re: [PHP] checkboxes & php Richard Whitney
- Re: [PHP] checkboxes & php 1LT John W. Holmes
- Re: [PHP] checkboxes & php Richard Whitney
- Re: [PHP] checkboxes & php Didier McGillis