help with IF function needed
Posted: Tue May 24, 2005 5:20 am
Hi Guys
what i'am trying to do is from a link
it goes to another page and depending on there username and status it will either display a hidden section or keep it hidden heres the code i'am having problems with
if any one can see what ive done wrong please gimme me thump and say hey dummy thats the cause 
TIA
what i'am trying to do is from a link
Code: Select all
echo "e; <td align=left><a href='modules.php?name=Training&mode=viewprofile&username="e; . $rowї"e;username"e;] . "e;&status="e; . $rowї"e;status"e;] . "e;'><b>regrade</b></a></b></td><td align=center>#"e; . $rowї"e;user_id"e;] ."e;"e; . $rowї"e;status"e;] ."e;\n"e;;Code: Select all
if ($username == $userinfoї"e;username"e;] and $status > 5)
{
echo "e;<table align=center width=\"e;83%\"e; border=\"e;0\"e; bgcolor=\"e;516783\"e; cellspacing=\"e;0\"e;>\n"e;;
echo "e; <tr height='40'>\n"e;;
echo "e; <td>\n"e;;
echo "e; <div align=\"e;center\"e; bgcolor=\"e;#516783\"e;>\n"e;;
echo "e; <font color=\"e;#FFFFFF\"e; size='3'><b>IQT RE-Grade Section </b></font>\n"e;;
echo "e; </div>\n"e;;
echo "e; </td>\n"e;;
echo "e; </tr>\n"e;;
echo "e;</table>\n"e;;
echo "e; <table width=\"e;83%\"e; bgcolor=EFEEEE border=\"e;1\"e; align=\"e;center\"e; cellspacing=\"e;0\"e; bordercolor=\"e;#000000\"e;>\n"e;;
echo "e; <tr>\n"e;;
echo "e; <td>\n"e;;
echo "e; <div align=\"e;center\"e;><a href=\"e;modules.php?name=Training&file=regrade\"e;><i><b>Regrade a pilot</b></a> </div>\n"e;;
}TIA