WebWatcher
New Member
I have to somehow make these arrays using php reading the values from a mysql database. Can you help.
The Array name isneeds to be fruits.
Then in the array it has the name of the fruit. Image, description and then a onclick link.
*********************************************************
$fruits = array(
'Apple' => array('image' => 'assets/images/fruits/apple.jpg', 'description' => 'One of America\'s favorite fruits.', 'onclick' => 'One of America\'s favorite fruits.'),
'Avocado' => array('image' => 'assets/images/fruits/avocado.jpg', 'description' => 'The avocado is a dense, evergreen tree, shedding many leaves in early spring.'),
);
*********************************************************
The php output has to look like the above.
Thanks in advance
The Array name isneeds to be fruits.
Then in the array it has the name of the fruit. Image, description and then a onclick link.
*********************************************************
$fruits = array(
'Apple' => array('image' => 'assets/images/fruits/apple.jpg', 'description' => 'One of America\'s favorite fruits.', 'onclick' => 'One of America\'s favorite fruits.'),
'Avocado' => array('image' => 'assets/images/fruits/avocado.jpg', 'description' => 'The avocado is a dense, evergreen tree, shedding many leaves in early spring.'),
);
*********************************************************
The php output has to look like the above.
Thanks in advance