Hi am stuck trying to find out why this will not work.

<html>
<head>

<title>Untitled Page</title>

<style type="text/css">
#ImageMap1
{
   border: 0px #000000 solid;
}
</style>

</head>
<body>
<div id="wb_ImageMap1" style="position:absolute;left:0px;top:0px;width:600px;height:600px;z-index:0;">

<img src="images/black.bmp" id="ImageMap1" alt="" usemap="#ImageMap1_map" border="0" style="width:600px;height:600px;">

<map name="ImageMap1_map">

   <?php 
$x = 1; $y = 1; $z = 1;$output = '';
    for($x=1;$x<79;$x++)
    {
    for($y=1;$y<79;$y++)
{
    $string = $x .','.$y.','.$z;
    $output .= '<area shape="circle" coords="'. $string . '"href="./index.html" target="_blank" alt="" yellow="">'

    echo $output;
}
}
?>
</map>
</div>
</body>
</html>

i am getting "Parse error: syntax error, unexpected T_ECHO" is there like a foreach statment missing or something ?

To answer your question about the T_ECHO error, your code is missing a semicolon at the end of line 28.

this is sort of working with the added ";" However it is taking an age to load, is there a way to section it up so it loads quicker ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.