•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 403,041 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 2,932 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: 301 | Replies: 4
![]() |
•
•
Join Date: Aug 2007
Location: Cavite,Philippines
Posts: 507
Reputation:
Rep Power: 3
Solved Threads: 68
please specify the fields you want to display in the table.
"death is the cure of all diseases..."
http://ryantetek.wordpress.com
http://ryantetek.wordpress.com
•
•
Join Date: Jan 2008
Posts: 37
Reputation:
Rep Power: 1
Solved Threads: 6
$strHtml = '<table class="blah">';
$intCount = 0;
for($i = 0; $i < 2; $i++) {
$strHtml .= '<tr>';
for($j = 0; $j < 2; $j++) {
$strHtml .= "<td>{$arrResult[$intCount]}</td>";
$intCount++;
}
$strHtml .= '</tr>';
}
$strHtml .= '</table>';That is a very untidy example. I never usually mix HTML and PHP, so to better the above, I would be inclined to template it and have a separate template for each table cell. But that should be enough to work with and improve upon.
R.
Last edited by robothy : May 19th, 2008 at 2:48 am.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- Clean Previous Next Script for MySQL results (PHP)
- Table creation in asp.net not visually easy (ASP.NET)
- Printing the contents of a table (JSP)
- Datagrid to draw a table (C#)
- Table Layout Pannels (C#)
- PHP question regarding Forms (PHP)
- Drawing A Table On A Container(Panel) (Java)
- Creating a blob (HTML and CSS)
Other Threads in the PHP Forum
- Previous Thread: resizable text section with a background with 4 curvy corners
- Next Thread: Update RSS


Linear Mode