CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 Conditional Link in PHP

Print topic Send  topic

Author Message
Martin Gang
Posted: 10/21/2002, 2:44 PM

I am using CCS with a Windows 2000 Server, MySQL, IIS and PHP. I need to set a conditional link from one page to one of two other pages based on a value in the database. I can do this in ASP and am very new to PHP so I am uncertain of the syntax.

TIA.
Khac Cong
Posted: 10/21/2002, 8:43 PM

Hi Martin Gang,
you can use the below code:

<?
$link = <get filename base on value in the database>;
?>
<a href="http://yourhost/path/<? echo $link ?>"> click here </a>

Cong

   


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.