nd3_2000 Posted March 29, 2010 Share Posted March 29, 2010 Hi guys, I have this statement here working in html fine <tr><td ><a href="GetVeh.php?UniqueID=<?php echo "$Reg_No"; ?>"><?php echo "$Reg_No"?></a></td></tr> But I now need to create it in php by echoing the table row but I am getting an error where the Reg no is dissapearing. or all I get is "> Here is the code...I believe i am putting the \ in the wrong place but cannot figure it out. echo "<tr><td><a href=\"GetEmp.php?UniqueID=<?php echo \"$EmpID\"; ?>\"><?php echo $Name ?></a></td> Any idea would be very much appreciated THanks Link to comment https://forums.phpfreaks.com/topic/196858-php-echoing-a-table-row/ Share on other sites More sharing options...
TeddyKiller Posted March 29, 2010 Share Posted March 29, 2010 it's a basic fix. You do not need php tags in an echo, as an echo is PHP. echo "<tr><td><a href=\"GetEmp.php?UniqueID=".$EmpID."\">".$Name."</a></td>"; Also use code tags in future. Link to comment https://forums.phpfreaks.com/topic/196858-php-echoing-a-table-row/#findComment-1033511 Share on other sites More sharing options...
ignace Posted March 29, 2010 Share Posted March 29, 2010 echo "<tr><td><a href=\"GetEmp.php?UniqueID=$EmpID\">$Name</a></td> Link to comment https://forums.phpfreaks.com/topic/196858-php-echoing-a-table-row/#findComment-1033518 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.