dre Posted January 25, 2007 Share Posted January 25, 2007 hi im currently creating a program for a uni project but having some difficulty with a small bit of coding! plz excuse my ignorance but its my first time attempting to use php. at the moment im using php,dreamweaver and mysql, im creating a database that stores information on mobile phones for a phone shop, what i am hoping to achieve is when the user enters the functions of each handset (by checking the relavant checkbox's) i want dreamweaver/php to select a category (1,2 or3 ) that the handset belongs to, then store that value into tha database. e.g. i have seven checkbox's, each representing a differnt function of a mobile phone. If the user checks bluetooth and infrared the value '1 ' will be placed in the 'category' field of the database, if the where to check camera and mp3 player the value '2' is placed in the 'category' field...etc. any ideas, tips, SOLUTION! will be greatly appreciated!! Link to comment https://forums.phpfreaks.com/topic/35742-php-using-if-statements-checkboxs/ Share on other sites More sharing options...
Daney11 Posted January 25, 2007 Share Posted January 25, 2007 Firstly, have you created the database that the information will go in and have you created the template which you will be using, including the checkboxes? Link to comment https://forums.phpfreaks.com/topic/35742-php-using-if-statements-checkboxs/#findComment-169388 Share on other sites More sharing options...
dre Posted January 26, 2007 Author Share Posted January 26, 2007 yes i have everything created the database in mysql and the template in dreamweaver...it connects fine also..if i check one of the boxes it will store in the database. Link to comment https://forums.phpfreaks.com/topic/35742-php-using-if-statements-checkboxs/#findComment-169556 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.