<?php
ob_start();
/* functions and first part of the code */
if ($brief)
{ //showing a thumbnail
if ($a[7] && file_exists("products_pictures/".$a[7]))
{
$size = getimagesize("products_pictures/".$a[7]);
$out .= "<a href=\"index.php?productID=$product_id\"><img src=\"products_pictures/".$a[7]."\" onMouseOver="false;return escape ("<img src=\"products_pictures/".$a[7]."\">/")" border=0 width=\"100\" alt=\"".MORE_INFO_ON_PRODUCT." ...\">\n";
$out .= "<font class=small><br><nobr>".MORE_INFO_ON_PRODUCT."</nobr></font></a>\n";
}
else //no thumbnail - showing regular image
if ($a[5] && file_exists("products_pictures/".$a[5]))
{
$size = getimagesize("products_pictures/".$a[5]);
$out .= "<a href=\"index.php?productID=$product_id\"><img src=\"products_pictures/".$a[5]."\" border=0 width=\"100\"alt=\"".MORE_INFO_ON_PRODUCT." ...\">\n";
$out .= "<br><nobr>".MORE_INFO_ON_PRODUCT."</nobr></a>\n";
}
}
else { //showing regular image
if ($a[5] && file_exists("products_pictures/".$a[5]))
{
$size = getimagesize("products_pictures/".$a[5]);
if ($a[9] && file_exists("products_pictures/".$a[9])) //if there's big image uploaded
{
$out .= "<a target=top href=\"products_pictures/$a[9]\"><img border=0 src=\"products_pictures/".$a[5]."\" width=\"165\" alt=\"".ENLARGE_PICTURE."...\">";
$out .= "<br><font class=average><nobr>".ENLARGE_PICTURE."</nobr></font></a>\n";
}
else
$out .= "<img src=\"products_pictures/".$a[5]."\" $size[3] alt=\"$a[1]\">\n";
}
else //no regular image - watching for thumbnail
if ($a[7] && file_exists("products_pictures/".$a[7]))
{
$size = getimagesize("products_pictures/".$a[7]);
$out .= "<img src=\"products_pictures/".$a[7]."\" border=0 $size[3] alt=\"$a[1]\">\n";
}
};
$out .= "
/* the rest of the code */
ob_end_flush();
?>
please help me 🙁
i get "Parse error: syntax error, unexpected T_STRING in..." error on line 140
(
$out .= "<a href=\"index.php?productID=$product_id\"><img src=\"products_pictures/".$a[7]."\" onMouseOver="this.T_ABOVE=false;return escape ("<img src=\"products_pictures/".$a[7]."\">/")" border=0 width=\"100\" alt=\"".MORE_INFO_ON_PRODUCT." ...\">\n";
^^^^^^^^this is line 140)^^^^^^^^
i'm trying to make the picture pop-up up enlarged when i mouse-over it and as you can see... i'm haveing some trouble 🙁