Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 26th, 2006, 3:04 AM   #1
juanolas43
Newbie
 
Join Date: Apr 2006
Posts: 2
Rep Power: 0 juanolas43 is on a distinguished road
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!
juanolas43 is offline   Reply With Quote
Old Apr 26th, 2006, 3:55 PM   #2
ASHORY
Programmer
 
ASHORY's Avatar
 
Join Date: Dec 2004
Location: Egypt
Posts: 30
Rep Power: 0 ASHORY is on a distinguished road
Send a message via ICQ to ASHORY Send a message via MSN to ASHORY Send a message via Yahoo to ASHORY
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 .
__________________
"^Ahmed.SHOukRY^"
http://www.ashory.741.com
ASHORY is offline   Reply With Quote
Old Apr 26th, 2006, 4:37 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Perhaps you should recheck the definition of rows/columns.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 27th, 2006, 9:10 AM   #4
juanolas43
Newbie
 
Join Date: Apr 2006
Posts: 2
Rep Power: 0 juanolas43 is on a distinguished road
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...
juanolas43 is offline   Reply With Quote
Old Apr 27th, 2006, 9:22 AM   #5
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
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.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Apr 27th, 2006, 4:38 PM   #6
ASHORY
Programmer
 
ASHORY's Avatar
 
Join Date: Dec 2004
Location: Egypt
Posts: 30
Rep Power: 0 ASHORY is on a distinguished road
Send a message via ICQ to ASHORY Send a message via MSN to ASHORY Send a message via Yahoo to ASHORY
what do you mean with recheck the difination of row / columns
__________________
"^Ahmed.SHOukRY^"
http://www.ashory.741.com
ASHORY is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:06 AM.

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