944,015 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 11682
  • PHP RSS
Nov 23rd, 2007
0

display table border

Expand Post »
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>
Similar Threads
Reputation Points: 19
Solved Threads: 5
Junior Poster
lydia21 is offline Offline
183 posts
since Nov 2007
Nov 23rd, 2007
0

Re: display table border

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

PHP Syntax (Toggle Plain Text)
  1. echo "<table width='something' border='1'>";
Reputation Points: 235
Solved Threads: 193
Nearly a Posting Virtuoso
kkeith29 is offline Offline
1,315 posts
since Jun 2007
Nov 23rd, 2007
0

Re: display table border

thanks it is working
Reputation Points: 19
Solved Threads: 5
Junior Poster
lydia21 is offline Offline
183 posts
since Nov 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Broken Script
Next Thread in PHP Forum Timeline: parse error





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC