PDA

View Full Version : Dynamic table size


loooolaaaaa
08-09-2006, 08:31 PM
Can any one guide me regarding this. As i am new PHP

i wanna create a table with 5 colums and number of rows should be dynamic and it depends on database values. if DB has 10 values the my table should be 10 X 5. So can anyone tell me the code for this

arnyinc
08-09-2006, 09:14 PM
Are you using mysql?

http://us2.php.net/manual/en/function.mysql-query.php

See example 2.

loooolaaaaa
08-10-2006, 02:57 AM
Yes i am using Mysql. I am able to retrieve values from database. but i am not able to make table size (PHP) to be dynamic.I need a code in PHP to add values to tables used in PHP to be dynamic