Jump to content

Recommended Posts

  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.   

the only ways to supply values to a page are - imbedded in the url as hostname, path, or filename information or as $_GET, $_POST, $_FILES, $_COOKIE, or $_SESSION data.

 

since you are generating a list of urls, you would need to pass some unique identifier as part of each url.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.