Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
$Desc = "some string";
include 'templatex.php';
some string
Your method requires the creation of 500 something.php files + one templatex.php because I have 500 different items.
[/code]
utter rot.
<?php
$array = array ('apples', 'bananas, 'carrots', 'dandelions', 'elephants', 'foxglove', 'gardenia', 'hibiscus, 'iris', 'jasper');
$counter = 0;
foreach ($array as $key=>$item){
$counter++;
include 'template.tp';
}
?>
<html>
<head></head>
<body>
<hr/>
This is the output from item <?php echo $counter; ?><br/>
I like <?php echo $item?><br/>
The item was contained in key <?php echo $key;?> of the array<br/>
<hr/>
</body>
</html>
dmkFoto said:How am I going to keep track easily what array sequence is a certain item within the arrary?
$array['desc']='IPOD';
$array['name']='Apple';
$array['color']='White';
dmkFoto said:Also, I see the template file name is .tp. Is that an acceptable php file format?