hisham
IS-IT--Management
- Nov 6, 2000
- 194
The link used to run this code, pass the 2 parameters: $hid and $id,
$names = mysql_query("SELECT * FROM name_tbl WHERE hid='$hid' AND ORDER BY id"
;
while ($name_row = mysql_fetch_row($names)) {
echo "<tr><td>$name_row[0]</td>";
echo "<td> $name_row[3]</td></tr>";
}
This will display i.e. 14 records, if $id=5 how can I use the $id to display its record with some html tags: <b> , <i> etc… ?
Thanks in advance
$names = mysql_query("SELECT * FROM name_tbl WHERE hid='$hid' AND ORDER BY id"
while ($name_row = mysql_fetch_row($names)) {
echo "<tr><td>$name_row[0]</td>";
echo "<td> $name_row[3]</td></tr>";
}
This will display i.e. 14 records, if $id=5 how can I use the $id to display its record with some html tags: <b> , <i> etc… ?
Thanks in advance