Jump to content

Php hyperlink issue


mlj0102

Recommended Posts

I am having problems with a line of code.  This is what I have so far.  I am missing a "," according to my error message.  Im trading in deep water with this line of code.  I am trying to use the data from my echo state to be a hyperlink...  If that makes sense.

 

echo "\t" . '<td><a href="' . APP_ROOT . 'onlinebanking/viewtransactions.php">. $account['BankAccountID'] . </a>' '</td>' . "\n";

Link to comment
https://forums.phpfreaks.com/topic/261765-php-hyperlink-issue/
Share on other sites

echo '<td><a href="' . APP_ROOT . 'onlinebanking/viewtransactions.php">'.$account['BankAccountID'].'</a></td>' . "\n";

 

The issue is very simple to solve. You need to thoroughly check your code ensuring you aren't randomly opening and closing the string. at the closing anchor tag you had closed and opened an all sorts.

Link to comment
https://forums.phpfreaks.com/topic/261765-php-hyperlink-issue/#findComment-1341404
Share on other sites

If you use [ php ] tags instead of [ code ] tags, the forums will highlight your code for you.  What looks wrong here...

 

 

echo "\t" . '<td><a href="' . APP_ROOT . 'onlinebanking/viewtransactions.php">. $account['BankAccountID'] . </a>' '</td>' . "\n";

 

Link to comment
https://forums.phpfreaks.com/topic/261765-php-hyperlink-issue/#findComment-1341417
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.