How to echo the code below in php?
<a href="cust_room/assign_room.php?cust_id=<?php echo $row_customer['cust_id']; ?>">Assign Room</a>
I did try this, but got an error.
echo "<a href="cust_room/assign_room.php?cust_id=<?php echo $row_customer['cust_id']; ?>">Assign Room</a>";
See Question&Answers more detail:os