hi
in this coding i want to specify the table width and border..i tried with css and html both are not working..please tell me how to display the table

<html>
<head></head>
<link rel="stylesheet" type="text/css" href="test.css" />
<body>
<?php
$hostname = "localhost";
$username = "splendor_lydia";
$password = "jesus";
$dbid = "splendor_samp";
$link=mysql_connect($hostname, $username, $password);
mysql_select_db($dbid) or die("unable to connect");

echo "<table>";
$result=mysql_query("SELECT * FROM please");
for ($i = 0; $i < 1; ++$i)
{
$line = mysql_fetch_row($result);
print "<tr><td>Name $line[0]</td></tr>";
print "<tr><td>Company Name $line[1]</td></tr>";
print "<TR><td>Company Address $line[2]</td></tr>";
print "<tr><td>Email Id $line[3]</td></tr>";
print "<tr><td>Skills $line[4]</td></tr>";
print "<tr><td>Degree $line[5]</td></tr>";
print "<tr><td>Industry Type $line[6]</td></tr>";
print "<td>Description $line[7]</td></tr>";
print "<tr><td>Requirement $line[8]</td></tr>";
print "<tr><td>Year Of Experience $line[9]</td></tr>";
print "<tr><td>Salary $line[10]</td></tr>";
print "<tr><td>Search Date $line[11]</td></tr>";
}
echo "</table>";


mysql_close($link);
?>
</body>
</html>

Recommended Answers

All 2 Replies

just add the width and border to the <table> tag.

echo "<table width='something' border='1'>";

thanks it is working

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.