Hi guys, so from now on, i'll be using this blog to blog about my progress in PHP class website project.
Menu Data!
$pizza1 = array('name'=>'Base Special', 'toppings'=>array('tomato', 'mozzarella', 'ham', 'capsicum', 'salami'), 'price'=>'£12.99', 'thumb'=>'01.jpg');
$pizza2 = array('name'=>'The Lot', 'toppings'=>array('tomato', 'mozzarella', 'ham', 'capsicum', 'salami', 'mushroom', 'pineapple', 'onion', 'garlic'), 'price'=>'£13.99', 'thumb'=>'02.jpg');
$pizza3 = array('name'=>'Capriciosa', 'toppings'=>array('tomato', 'mozzarella', 'ham', 'mushroom', 'olives', 'anchovies'), 'price'=>'£11.99', 'thumb'=>'03.jpg');
$Originals = array($pizza1, $pizza2, $pizza3);
So that is how i'm going to represent data at the moment. When we get into MySQL, i'll have it differently.. But the main point was to have a pizza in an array and have an array inside an array for the toppings so when the user wishes to search for a certain topping, it'd be possible.
The data will obviously have a lot more than just 3 pizzas. Also seeing how our index page should look like, I have created a folder called Settings in the include folder and created a file called page_settings.php and included the shortcuts there.
define('IMAGES_FLDR', 'images/');
define('PAGES', 'pages/');
define('FUNCTIONS', 'includes/functions/');
define('PAGE_COMPONENTS', 'pages/components/');
Well that is all for now. I am looking forward to learning more and more.
19 August 2010
I really happy found this website eventually. Really informative I am Sharing a website where you can get the latest anavar oxandrolone
ReplyDeleteI really happy found this website eventually. Really informative I am Sharing a website where you can get the latest dormicum dosering
ReplyDelete