hai.. friends... i need some helps from you people..
i tried the code
<html>
<head><title>Display Table</title></head>
<body>
<?php
$database="temp"; /* DB name */
$host="localhost";
$user="root"; /* Set DB Username */
$pass=""; /* Set DB password*/
mysql_pconnect($host,$user,$pass); /* DB connect....*/
mysql_connect ($host,$user,$pass);
@mysql_select_db($database) or die( "Unable to select database");
$result = mysql_query( "SELECT Username,Primaryid FROM registration" )
or die("SELECT Error: ".mysql_error());
$num_rows = mysql_num_rows($result);
//print "There are $num_rows records.<P>";
print "<table width=500 border=1>\n";
while ($get_info = mysql_fetch_row($result)){
print "<tr>\n";
foreach ($get_info as $field)
print "\t<td><font face=Copperplate Gothic size=4/>$field</font></td>\n";
print "</tr>\n";
}
print "</table>\n";
?>
</body>
</html>
i need to display the table in the exact postion in the webpage. for that what i need to add.
and also i need to give some different colours for the border and rows
please help me...!!
Any assistance is much appreciated.
a v vishnu