473,394 Members | 1,751 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

why isn't table border displaying with this code ?

3
I used this code to echo a table.It works all right but table border is not displaing. plz tell me what I have done wrong.

Expand|Select|Wrap|Line Numbers
  1. $result = ("SELECT  $tbltempisit.item_name,  $tbltempds.emp_name FROM $tbltempisit INNER JOIN $tbltempds ON $tbltempisit.req_num = $tbltempds.req_num");
  2.  
  3.      $query_r=mysql_query($result);
  4.  
  5.   echo "<table  border='1'>
  6.   <tr>
  7.   <th>Item</th>
  8.   <th>name</th>
  9.   </tr>";
  10.   while ($row = mysql_fetch_array($query_r)) {
  11.   echo "<tr>";
  12.   echo "<td>" . $row['item_name'] . "</td>";
  13.   echo "<td>" . $row['emp_name'] . "</td>";
  14.   echo "</tr>";
  15.   }
  16.   echo "</table>";
  17.  
  18.     }
  19.  
  20.  
  21.  
Feb 28 '13 #1
1 1023
Rabbit
12,516 Expert Mod 8TB
Do you have any CSS overriding the borders?

Please post the source as seen by the client.
Feb 28 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Peter Foti | last post by:
I have a table that contains 3 rows, and 2 columns. I would like a border that surrounds the entire table, and then a border separating the left and right columns, but no border separating rows. ...
6
by: Mr. Clean | last post by:
Apparently Mozilla/Firefox doesn't support the bordercolor attribute of the table tag. Here's what I do that works in IE: <table border="1" cellpadding="2" cellspacing="0" width="380"...
2
by: rked | last post by:
I get nameSPAN1 is undefined when I place cursor in comments box.. <%@ LANGUAGE="VBScript" %> <% DIM ipAddress ipAddress=Request.Servervariables("REMOTE_HOST") %> <html> <head> <meta...
5
by: ojvm | last post by:
ok. thanks again for the time spend reading this. this code adds 2 controls in html form but it places in top of the form. i want this control1 control2 control1 control2 control1 ...
11
by: Michael Mayo | last post by:
I have a simple html page that contains an image in a single table cell, surrounded by a border: <http://www.softrains.com/lc/test.html>. I would like to eliminate the space between the table...
2
by: elkeseltza | last post by:
Hi I am supernew at all this webstuff and am learning as I go. One of the major problems I have already encountered on numerous occasions is that IE and FF don't display the same way! Latest...
1
by: rn5a | last post by:
I want an ASP app to retrieve records from a MS-Access database table but display them in a HTML table but I want the HTML table table to display only 7 records in a row (<tr>...</tr>) in 7...
1
by: micross | last post by:
hi how to add the border and edit ,delete button ,plz helme . <html xmlns="http://www.w3.org/1999/xhtml" > <head runat="server">
3
by: cleary1981 | last post by:
Hi, I know how to generate xml from php but is there an easier way to generate xml from my code? <?php $quote=$_GET; //echo $quote; require "config.php"; $q1 = mysql_query("SELECT * FROM...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.