PDA

View Full Version : Quick question


Dean N Steve
07-22-2003, 06:26 PM
if(empty($userinfo[aim]))
{
$userinfo[aim]== 'n/a';
}
if(empty($userinfo[icq]))
{
$userinfo[icq]== 'n/a';
}
if(empty($userinfo[yahoo]))
{
$userinfo[yahoo]== 'n/a';
}


I put that code in my phpinclude but when using a user's profile and any of these fields are empty it does not display ' n/a ' :)

Oh and btw i tried adding single quotes too :) i.e


if(empty($userinfo['aim']))
{
$userinfo['aim']== 'n/a';
}
if(empty($userinfo['icq']))
{
$userinfo['icq']== 'n/a';
}
if(empty($userinfo['yahoo']))
{
$userinfo['yahoo']== 'n/a';
}


Any ideas?

Thanx in Advance

- miSt