hi ,
Can somebody help me to center this table
?
<?php
/* Connecting, selecting database */ $link = mysql_connect("localhost", "root", "zzzzz") or die("Could not connect : " . mysql_error()); #echo "Connected successfully"; mysql_select_db("abcd") or die("Could not select database"); /* Performing SQL query */
$query = "SELECT * FROM ServiceStatus"; $result = mysql_query($query) or die("Query failed : " . mysql_error()); /* Printing results in HTML */
print "<table border=\"1\ cellpadding=\"5\" cellspacing=\"0\">\n"; while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { echo "\t<tr>\n"; foreach ($line as $col_value) { echo "\t\t<td>$col_value</td>\n"; } echo "\t</tr>\n"; } echo "</table>\n"; /* Free resultset
*/
mysql_free_result($result); /* Closing connection
*/
mysql_close($link); ?> Thanx in advance
curlys
|
-- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]