Jump to content

[SOLVED] IF Statement Problem


kyleldi

Recommended Posts

I've got a basic if statement that keeps giving me an unexpected $end error when I try to execute it.  Any idea what I'm missing?  Here's my code:

 

<?php 
if ($row_rs_staff['title']=="N/A")
{
echo '';
}
else
{
echo '<p>Department Title: ' .  ucwords($row_rs_staff['title']) .'</p>';
}
if ($row_rs_staff['extension']=="N/A")
{
echo '<p>Phone: 616.892.7070</p>';
}
else
{
echo '<p>Phone: 616.892.7070 Ext. ' .  ucwords($row_rs_staff['extension']) .'</p><p>Fax: 616.892.7072</p>';
if ($row_rs_staff['email']=="N/A")
{
echo '';
}
else
{
echo '<p>E-Mail: ' .  ucwords($row_rs_staff['extension']) .'</p>';
}?>

Link to comment
https://forums.phpfreaks.com/topic/148229-solved-if-statement-problem/
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.