Hi!! well i wanted to have a dynamic table consisting of 3 columns .
Instead i am having a table consisting of only one column
my codes are below
<?php
//connection stuffs
$username="vinay";
$db="movedb";
$passwrd="vinay";
mysql_connect(localhost,$username,$passwrd);
@mysql_select_db($db)or die("cannot connect to db");
$query="select * from user";
$result=mysql_query($query);
$num=mysql_numrows($result);
echo"<table border =1 align=center>";
$cols=3;
for($i=0;$i<$num;$i++)
{
echo"<tr>";
echo"<td>".mysql_result($result,$i,"Name")."</td>";
echo "</tr>";
}
echo"</table>";
mysql_close();
?>
can anyone help me tell me how to create a a dynamic table consisting of 3 columns instead of 1.
regards
mungra