mlj0102 Posted April 28, 2012 Share Posted April 28, 2012 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"; Quote Link to comment https://forums.phpfreaks.com/topic/261765-php-hyperlink-issue/ Share on other sites More sharing options...
cpd Posted April 28, 2012 Share Posted April 28, 2012 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. Quote Link to comment https://forums.phpfreaks.com/topic/261765-php-hyperlink-issue/#findComment-1341404 Share on other sites More sharing options...
ManiacDan Posted April 28, 2012 Share Posted April 28, 2012 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"; Quote Link to comment https://forums.phpfreaks.com/topic/261765-php-hyperlink-issue/#findComment-1341417 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.