mc136 Posted March 7, 2007 Share Posted March 7, 2007 Hi I seem to manage to produce the info i need when not using a database. Being new to mysql could someone help in telling me how i should enter the following data into db. $section['servicedesk']['batch'] = 8; $section['servicedesk']['promo'] = 22; $section['servicedesk']['ens'] = 2; $section['status']['fmr'] = 16.00; $section['status']['odw'] = 16.00; print_r ($section); returns the following: Array ( [servicedesk] => Array ( [batch] => 8 [promo] => 22 [ens] => 2 ) [status] => Array ( [fmr] => 16 [odw] => 16 ) ) Quote Link to comment Share on other sites More sharing options...
fenway Posted March 7, 2007 Share Posted March 7, 2007 What do these represent? Quote Link to comment Share on other sites More sharing options...
mc136 Posted March 7, 2007 Author Share Posted March 7, 2007 hi servicedesk and status represent sections (headings) and for each i need to be able to enter approp info i.e. servicedesk contains sub directory batch, promo and these contain the values whatever 6, 7, etc e.g. Servicedesk batch - 8 promo - 2 status fmr - 3 odw - 5 Quote Link to comment Share on other sites More sharing options...
fenway Posted March 7, 2007 Share Posted March 7, 2007 I'm still confused -- you just want to make tables for these objects? Quote Link to comment Share on other sites More sharing options...
artacus Posted March 7, 2007 Share Posted March 7, 2007 Without really having a clue what you're doing. I'd strongly recommend something like so: Servicedesk -- service_id INT AUTOINC -- batch INT -- promo INT -- ens INT Status -- service_id INT -- frm DECIMAL(5,2) -- odw DECIMAL (5,2) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.