The location of the occuring error statement is where I have put in this
random item call, it works normally, but I want it formatted to show both
the thumbnail and price. I imagine this is the error, but I was wondering
why is it saying that there is a parse error in the index.php3
** Random Item
*/
include(APPLICATION_ROOT . "/modules/include/item_functions");
if ($itemID=RandomItem())
{
/* Output the thumbnail, if one exists. */
if($RandomItemThumbnail != "")
{
$thumbnailPath = "images/items/$RandomItemThumbnail";
if( file_exists($thumbnailPath)
)
{
$imageSize = getimagesize($thumbnailPath);
print("<A HREF=\"" . ScreenURL("item") . "&item=$RandomItemID\">");
print("<IMG SRC=\"$thumbnailPath\" " . "$imageSize[3] BORDER=\"0\"
ALIGN=\"left\" " . "VSPACE=\"10\" HSPACE=\"10\">\n");
print("</A>");
}
print("<br>");
{
$RandomItem = GetItemInfo($itemID);
print("<font size=\"1\" face=\"Geneva,Helvetica,Arial\">\n");
print("<A HREF=\"" .ScreenURL('item', FALSE, array('item'=>$RandomItem
['ID']))."\">" .
$RandomItem['Name']. "</A><BR>\n");
}
print("<br>");
print("<font size=\"1\" face=\"Geneva,Helvetica,Arial\">\n");
if($RandomItem["SKU"]["SalePrice"][$index] > 0)
{
print(" " . formatMoney($RandomItem["SKU"]["SalePrice"][$index]));
}
else
{
print(" " . formatMoney($RandomItem["SKU"]["ListPrice"][$index]));
}
print("</font>");
print("</td>");
/*
** Special Item
*/
if ( $SpecialItem = GetItemInfo(SpecialItem()) )
{
print("Special Item: ");
print("<A HREF=\"".ScreenURL('item', FALSE,
array('item'=>$SpecialItem['ID']))."\">" .
$SpecialItem['Name']. "</A><BR>\n");
}
?>
</tr>
<tr>
<td width=\"100%\"></td>
</tr>
</table>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Site: http://www.working-dogs.com/freetrade/
Problems?: [EMAIL PROTECTED]