Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   I'm need storage tabular data into my database (http://www.programmingforums.org/showthread.php?t=9535)

juanolas43 Apr 26th, 2006 2:04 AM

I'm need storage tabular data into my database
 
Salut!

I'm doing a php + mysql projet for my university and the last point that I should face is add to the database support for storage tabular data as after that I should print it in a web page and in pdf files.

My problem consist of that Itīs not possible to know the number of rows or
columns before the user begin working. In others words,tables will be different each other.

so... Anybody can help me??


Merci!

ASHORY Apr 26th, 2006 2:55 PM

no you can know who many columns are there in the table
SELECT COUNT(*) as Num FROM Table

that script is to know how many codes are there in the table an it can have where tag to select the number of rows that have a same value .

DaWei Apr 26th, 2006 3:37 PM

Perhaps you should recheck the definition of rows/columns.

juanolas43 Apr 27th, 2006 8:10 AM

Actually , my problem begins before... I must build special tables in the db for storage le tabular data. So that, my problem is that theses "db-tables" must give support for different types de tables...

DaWei Apr 27th, 2006 8:22 AM

Sorry, my comment was addressed at ASHORY, but I didn't make that clear. Investigate the CREATE DATABASE, CREATE TABLE, and related items. If you want more information, you need to provide more information. The precision and applicability of the responses will be proportional to the precision and depth of the information in your posts. Write some code. Explain how it fails to delight you and show the areas where that failure occurs.

ASHORY Apr 27th, 2006 3:38 PM

what do you mean with recheck the difination of row / columns


All times are GMT -5. The time now is 5:41 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC