Hi all,
I currently have this code
The code outputs the table that the user searches on, which does change depending on what table they selects.
What i am now trying to do is let the user edit a entry.
I am new to PHP - but my thinking was to use the "ID" field from each table, and turn this column into a hyperlink, so i can carry the ID number across to my next page in my site to update that line within the table; which i am struggling to do, could someone help or point me in the right direction.....
Also can you carry more then one think across within a hyperlink???
Any help would be appreciated, thanks in advance.
I currently have this code
Code:
echo "<table border='1'><thead><tr>";
for($i = 0;$i < mysql_num_fields($sql_result);$i++)
{
echo "<th>".mysql_field_name($sql_result,$i).
"</th>";
}
echo "</tr></thead>
<tbody>";
for ($i=0;$i < mysql_num_rows($sql_result);$i++)
{
echo "<tr>";
$row = mysql_fetch_row($sql_result);
foreach($row as $value)
{
echo "<td>".$value."</td>";
}
echo "</tr>";
}
echo "</tbody></table>";
The code outputs the table that the user searches on, which does change depending on what table they selects.
What i am now trying to do is let the user edit a entry.
I am new to PHP - but my thinking was to use the "ID" field from each table, and turn this column into a hyperlink, so i can carry the ID number across to my next page in my site to update that line within the table; which i am struggling to do, could someone help or point me in the right direction.....
Also can you carry more then one think across within a hyperlink???
Any help would be appreciated, thanks in advance.