•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 423,353 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 5,154 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 300 | Replies: 2
![]() |
i have found this code and would like to know how i can get the column titles to show up at the top of the page.
this code simply just prints out all the data without the titles to the columns
$result = mysql_query( "SELECT * FROM merc_users" )
or die("SELECT Error: ".mysql_error());
$num_rows = mysql_num_rows($result);
print "There are $num_rows records.<P>";
print "<table width=1000 height=400 border=1>\n";
while ($get_info = mysql_fetch_row($result)){
print "<tr>\n";
foreach ($get_info as $field)
print "\t<td><font face=arial size=2/>$field</font></td>\n";
print "</tr>\n";
}
print "</table>\n"; this code simply just prints out all the data without the titles to the columns
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- store HTML is a text field in a table on a MySQL Database (MySQL)
- inserting checkbox values in mysql +PHP (PHP)
- Data from mysql in a 3 columns table (PHP)
- MYSQL: update all fields in a table (increase value by one) (PHP)
- Loops (PHP)
- I NEED HELP PLEASE:Warning: mysql_num_rows(): (PHP)
- I NEED HELP PLEASE:Warning: mysql_num_rows(): (MySQL)
- Online library (PHP)
- How can I create database/table images in MySQL (PHP)
Other Threads in the PHP Forum
- Previous Thread: Zend is making me feel Zendy!!
- Next Thread: Help! PHP form mailer not working.


Linear Mode