while($row = mysql_fetch_array($result2)) { echo "<tr>"; echo "<td>" . $row['hotel'] . "</td>"; echo "<td>" . $row['hotelnum'] . "</td>"; echo "<td>" . $row['price'] . "</td>"; echo "<td align='center'>" . $row['bedroom'] . "</td>"; echo "<td>" . $row['descrip'] . "</td>"; echo "<td>" . $row['level1'] . "</td>"; echo "<td>" . $row['level2'] . "</td>"; echo "<td>" . $row['notes'] . "</td>"; ?> <td><A HREF="viewhotelnum.php" onClick="return popup(this, 'notes')">view</A></td> <?php echo "</tr>"; } echo "</table>"; mysql_close();
I want to send the $row['prim'] to the link viewhotelnum.php. This way when they click the link the viewhotelnum.php I can display the photos for that particular hotel room.