Location: PHPKode > projects > Arab Cart > arabCart/files/left.php
<?php
/*
  ArabCart, Free E-Commerce Solutions
  http://www.arabcart.info

  Copyright (c) 2005 Mhd Zaher Ghaibeh

  Released under the GNU General Public License
  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU General Public License
  as published by the Free Software Foundation; either version 2
  of the License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
  USA.
*/


	//brings some info about the most wanted products

		$most=mysql_query("select mos.product_id , prod.name , thu.thumb_img from products prod , most_wanted mos ,img_thumb thu where prod.id = mos.product_id  and prod.id=thu.product_id order by mos.id DESC  ") or die(mysql_error());

	if(mysql_num_rows($most)!=0)

	{

		while($row_most=mysql_fetch_object($most))

			{

				$template -> AddVar("most","MOST-WANTED-PRODUCT",$row_most->name);

				$template -> AddVar("most","PRO-ID",$row_most->product_id);

				$template -> AddVar("most","PRO-IMG",$row_most->thumb_img);

				$template -> parseTemplate("most","a");

			}

	}

	else

	{

		$template -> AddVar("left","IMG","<center><img src='images/Alert-Stop-2.PNG' border='0' width='60'></center>");

	}

	

	$template -> AddVar("smallcontact","ERROR-MAIL",mailerr);

	$template -> AddVar("smallcontact","ERROR-COMMENT",commenterr);

	$template -> AddVar("smallcontact","CONTACT-US",contact);

	$template -> AddVar("smallcontact","EMAIL",mail);

	$template -> AddVar("smallcontact","COMMENT",comments);

	$template -> AddVar("smallcontact","SUBMIT",submit);

	$template -> AddVar("smallcontact","SID",$PHPSESSID);



?>
Return current item: Arab Cart