mysql result
Posted: Mon Jul 05, 2004 1:37 pm
I have the following code reading out the results of my database, how can i make the word "approve" into a link that passes the id of the record that its printing out? $line isnt necesarily the record number as the querry this uses has a WHERE clause
also the table this reads from has ALOT of fields so the easiest approach would be prefered
also the table this reads from has ALOT of fields so the easiest approach would be prefered
Code: Select all
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo "\t<tr><td>Approve?</td>\n";
foreach ($line as $col_value) {
echo "\t\t<td>$col_value</td>\n";
}
echo "\t</tr>\n";
}