Re: php, frames

From: Date: Sat, 16 Nov 2002 12:12:34 +0000
Subject: Re: php, frames
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124716@lists.php.net to get a copy of this message
Adrian, one thing you can do is point the <a> tag to a target of the lower frame and in the lower frame you can look for the tableID and get the information from the database. echo "<tr><td><a href=\"lowerframe.php?tableID=$row['id']\" target=\"lowerframe\">{$row['id']}</a></td>"; then you could do something like: if ($tableID) { $query = mysql_query("SELECT... ...WHERE tableID = '$tableID'"); while ($row = mysql_fetch_array($query)){ ... display something ... } } --aaron "Adrian Partenie" <adrian.partenie@artelecom.net> wrote in message news:004b01c28d67$52fe9880$0bc46150@olimp... Hello, I could use some help. I have two framed pages, upperframe.html and lowerframe.html. In upper frame.html: echo "<table border=1>"; echo "<tr><td></td><td>ID</td><td>Subject</td><td>Open</td><td>Close</td></tr>"; while($row = MySQL_fetch_array($result)) { echo "<tr><td><form><input type=\"checkbox\" method=\"post\" name=\"linia\"></form></td>"; echo "<td><a href=\"????\" target=\"_parent\">{$row['id']}</a></td>"; ?????????????? echo "<td>{$row['subject']}</td>"; echo "<td>{$row['open']}</td>"; echo "<td>{$row['close']}</td></tr>"; } echo "</table>"; I display the content of the main table, which has an autoincrement index. For every index I have another table, something like tableID. What I want is to press on the id from a row in upperframe table and to display in lowerframe the tableID. How can I do that? Thanks a lot, Adrian

« previous php.general (#124716) next »