Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need expert help

Status
Not open for further replies.

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 &quot;<tr><td>$name_row[0]</td>&quot;;
echo &quot;<td> $name_row[3]</td></tr>&quot;;

}
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top