CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 need help converting asp to php

Print topic Send  topic

Author Message
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.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.