albertopepler Posted February 22, 2012 Share Posted February 22, 2012 I am trying to put a href on a line to link me to another php module, but get an error: Parse error: parse error in C:\wamp\www\editpolicy.php on line 47 My code: while ($row2 = mysql_fetch_array($result2) ) { print "<tr><td>"; <a href='editpayment.php?payid=$row2[PaymentID]'>$row2[PaymentID]</a> .........THIS IS LINE 47 ??? print "</td><td>"; print $row2['Actioned']; print "</td><td align='right'>"; print $row2['PremiumPaidAmount']; print "</td><td align='right'>"; print $row2['Risk']; print "</td></tr>"; } Quote Link to comment Share on other sites More sharing options...
marcus Posted February 22, 2012 Share Posted February 22, 2012 You need a print statement there. while($row2 = mysql_fetch_array($result2)) { print "<tr><td>"; print "<a href='editpayment.php?payid=".$row2['PaymentID']."'>".$row2['PaymentID']."</a>"; // the rest of your print statements } Quote Link to comment 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.