with this code i get an output(in the form of a table)Code:<html> <head><title>Your Page Title</title></head> <body> <?php $dbhost = 'localhost'; $dbuser = 'root'; $dbpass = 'hello'; $dbname = 'user'; echo "hello"; // make a connection to mysql here $conn = mysql_connect ($dbhost, $dbuser, $dbpass); if(!$conn) { die('could not connect: ' . mysql_error()); } else echo "<BR>connected"; //select database to use $conn = mysql_select_db ($dbname); echo "<BR>connected to db" ; $result = mysql_query("SELECT taxtype.taxtypeid,taxname,group_concat(formno),actid,taxtype.status as formnum FROM taxtype,taxform where taxtype.taxtypeid=taxform.taxtypeid group by taxtypeid")or die(mysql_error()); $num_rows = mysql_num_rows($result); echo "<BR>" . $num_rows; print "<table width=500 border=1>\n"; while($row = mysql_fetch_row($result)) { print "<tr>\n"; print "\t<td><font face=arial size=1/>$row[0]</font></td>\n"; print "\t<td><font face=arial size=1/>$row[1]</font></td>\n"; print "\t<td><font face=arial size=1/> <a href=\"http://localhost/.php\" target=\"_blank\">$row[2]</a> </font></td>\n"; print "\t<td><font face=arial size=1/>$row[3]</font></td>\n"; print "\t<td><font face=arial size=1/>$row[4]</font></td>\n"; print "</tr>\n"; } print "</table>\n"; ?> </body> </html>
Code:1 mst 786 32543655768 true 2 pst 567 435604280349 true 3 tat 345,56 463139621081 true 4 wat form 12,form 24,form 14 32649342018 true
but then i want to have separate hyperlinks for the strings in the 2nd cell of each row i.e and i want them all in one cell only
Code:1 mst 786 32543655768 true 2 pst 567 435604280349 true 3 tat 345,56 463139621081 true 4 wat form 12,form 24,form 14 32649342018 true
So .plz could someone help me wid this ...extremely urgent



Reply With Quote


Bookmarks