mysql table but need php help - Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more
Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Webmaster Tech > Programming > PHP Development

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 11-20-2008, 01:40 PM   #1 (permalink)
Regular User
 
Join Date: Nov 2008
Posts: 20
Default mysql table but need php help

Hello;

I am more than green regarding mysql and php but due to business economics I am forced to

convert from ms access to mysql and desperately need assistance. I have created a database

and multiple tables, all associated with joins on ( user.id ). In the example below,

questions 1 and 3 have the same possible answers, this carries on throughtout the table

where the possibilities are the same. When it comes to filling the fields with answers I

could have the field varchar(??) based on the data. Having thousands of records would mean

a lot of space is taken up with same data. This would make displaying the records later

much easier as the fields have the full information already, but again, lots of space is

wasted.

My question/problem is "Can I use only 1 character for the answer and when it comes to

displaying the information switch it over to actual words. For instance, use char(1) for

fldquest01 ( the field for question 1 ) and have populated with 0, 1, 2, or 3 ( none, low,
moderate, high )? Either via mysql/php display the proper word for the data on the

webpage. I understand that the php file would be that much bigger, but would it be quicker

than redundant information in the tables?

I am trying to figure this out before I finish the tables to save double work or changing

something that will ultimately happen anyways. Can anyone help me with a solution or point

me with the correct language ( php, java, html ).


1. How are your energy levels?

None
Low

Moderate

High


2. Do you have trouble falling asleep or staying asleep?

Sometimes

Frequently

Rarely


3. How would you rate your level of confidence?

None
Low

Moderate

High


4. How often do you suffer minor ailments?

Frequently

Occasionally

Rarely
pepe_lepew1962 is offline   Reply With Quote
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Trackbacks are On
Pingbacks are On
Refbacks are On



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 07:28 PM.


Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2
Webmaster Forums
Web Hosting | Chicago Web Hosting | Web Hosting