Thanks for your help dnast, having one last problem though. Could please help!
I need to get all the values for the rollover. I am loading them into an array. I can not get the (blue) prt of the code to work, but the hard coded array (green) works fine. What am I doing wrong?
Many thanks in advance.
My code is as follows.
<?php
$result = mysql_query("SELECT model, points from table where make='sony'") ;
<?while ($phones = mysql_fetch_array($result)) {
$phones["model"];
$phones["points"];
}
//$phones = array("Z7" => "120",
// "Z5" => "40",
// "J6" => "40");
mysql_close($link);
The rollover code is:
onmouseover="javascript: frollover(<?php echo "{$phones['Z7']}"; ?>, 'Z7');"