forming string to preload images
Posted: Mon Sep 18, 2006 9:46 am
I have a page which i want to find the appropriate records from a database, These records i would like to an image which will be used for a mouse over. The image varies depending on the products i am looking at.
while retrieving this i would like to form a string by concatenating some results together. This string would then become the images I would like to preload for the mouseover section further down on the page.
I have put this code in but it tells me i have an undefined variable $image
can anyone see what i have done wrong or know of an easier way to do this
Thanks in anticipation
Nuts
while retrieving this i would like to form a string by concatenating some results together. This string would then become the images I would like to preload for the mouseover section further down on the page.
I have put this code in but it tells me i have an undefined variable $image
Code: Select all
while ($row = mysql_fetch_assoc($resultID))
{
$style = $row['ProductCode'];
$test = "designerscarfs/".$row['ProductCode'].".jpg";
$images = $images.$test;
print $images;
}Thanks in anticipation
Nuts