PHP; Include A href in if statement

smudgemouse
smudgemouse used Ask the Experts™
on
Code extract is:
if ( ( $string[1] == '2' )  ) {  
$_SESSION['sess_act']= 1;
   $txt2= "";
}
elseif ( ( $string[1] == '9' )  ) {  
$_SESSION['sess_act']= 9;
   $txt2= $_SESSION['kt_login_company']. " no data available<br />
put the a href here";}

Wish to put a link after the <br />
Could someone advise please?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2010
Commented:
Try:
if ( ( $string[1] == '2' )  ) {  
$_SESSION['sess_act']= 1;
   $txt2= "";
}
elseif ( ( $string[1] == '9' )  ) {  
$_SESSION['sess_act']= 9;
   $txt2= $_SESSION['kt_login_company']. " no data available<br /><a href='pagename.php'>click here</a>";}

Author

Commented:
solved it

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial