Donna
|
| Posted: 05/01/2002, 7:51 AM |
|
The following code is just hat I need, except I need it in php. Can anyone convert it?
if Session("UserRights") = 3 then
fldField1 = "<a href = 'Admin.asp'>AdminPage</a>"
end if
Thanks, Donna
|
|
|
 |
Brent
|
| Posted: 05/01/2002, 8:14 AM |
|
Try:
if (get_session("UserRights")==3)
{
$fldField1 = "<a href = 'Admin.php'>AdminPage</a>";
}
|
|
|
 |
Donna
|
| Posted: 05/01/2002, 8:38 AM |
|
Thanks Brent but that didn't quite get it, though I'm feel I'm closer now :o}
|
|
|
 |
Brent
|
| Posted: 05/01/2002, 2:49 PM |
|
>>that also creates a Parse error...
That's strange because I ran it in PHP before sending it to you and it worked
fine. There is an "AdminPage" hyperlink showing up in the browser.
Silly question, but are you sure you're running PHP? :)
Do any PHP applications working?
Try:
phpinfo();
and you should get the PHP settings displayed in the browser. If not, PHP isn't
running properly.
Run it through a debugger and it may be giving you a syntax error on some other line.
|
|
|
 |
|