$dbhost="localhost";
$dbuser="root";
$dbpass="123";
//$nm=$_POST['n1'];
//$roll=$_POST['n2'];
//$class=$_POST['n3'];
$result=mysql_connect($dbhost,$dbuser,$dbpass);
$db=mysql_select_db( " student");
$rs=mysql_query("select * from info");
Print " < table border cellpadding=3>";
print '
while($info = mysql_fetch_array( $rs ))
{
Print " < tr>";
Print " < td>".$info['name'] ." < /td> ";
Print " < td>".$info['roll_no'] . " < /td> ";
Print " < td>".$info['class'] ." < /td> ";
}
Print " < /table>";
? >
This is the second file rajinder first use abc.html which is posted earlier
now use this file save it in nn.html format
remember to have student database
and
info table
in ur database
No comments:
Post a Comment