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>"; } Link to comment https://forums.phpfreaks.com/topic/257513-parse-error-parse-error-in-cwampwwweditpolicyphp-on-line-47/ 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 } Link to comment https://forums.phpfreaks.com/topic/257513-parse-error-parse-error-in-cwampwwweditpolicyphp-on-line-47/#findComment-1319867 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.