| | |
DIV Help
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2008
Posts: 19
Reputation:
Solved Threads: 1
Hi,
What exactly you want? Just display all the fields of table in the html table? You wont bother about the width rather you should give border="0" in the table. for eg:- if you have two fields as Name,Age in "person" table, then
It automatically displays all Name and Age in person.
What exactly you want? Just display all the fields of table in the html table? You wont bother about the width rather you should give border="0" in the table. for eg:- if you have two fields as Name,Age in "person" table, then
php Syntax (Toggle Plain Text)
// made database connections in php //$sql=mysql_query("select * from person"); <form> <table border="0"> <tr> <td>Name</td><td>Age</td> <? while($row=mysql_fetch_array($sql)) { ?> <td> <? echo $row['Name'];?></td> <td><?echo $row['Age'];?></td> <? } ?> </table> </form>
Last edited by peter_budo; Dec 29th, 2008 at 5:40 am. Reason: Code tag correction, please use [code] not <code>
![]() |
Similar Threads
- createElement wont show table/div (JavaScript / DHTML / AJAX)
- div align=center (HTML and CSS)
- scrolling div ? (HTML and CSS)
- Div percentage height, centered and scrolling... or not... (Site Layout and Usability)
- Add textbox to editable div problem (JavaScript / DHTML / AJAX)
- Heading tags and div tags (HTML and CSS)
- DIV-X To VCD? (Geeks' Lounge)
Other Threads in the PHP Forum
- Previous Thread: comment box
- Next Thread: need help in php forms..plz
| Thread Tools | Search this Thread |
.htaccess action ajax apache api array auto beginner binary bounce broken cakephp checkbox class cms code cron curl database date display dynamic echo email error errorlog file files folder form format forms function functions google href htaccess html image include insert integration interactive ip java javascript joomla limit link login loop mail malfunctioning masterthesis menu mlm mod_rewrite multiple mysql nodes oop paypal pdf php popup problem query radio ram random recursion reference regex remote return script search server sessions sms soap source space sql syntax system table tutorial unset update upload url validation validator variable video web websitecontactform xml youtube





