$cat=$_GET[cat]; $subcat=$_GET[subcat]; $productid=$_GET[productid]; if ($cat=='') { $productid=$_POST[productid]; $cat=$_POST[cat]; $subcat=$_POST[subcat]; } $useextratitle='Vandagraph '; if ($productid<>'') { $s="SELECT * FROM viamed_newshop_products where shopid='$shopid' and PRODUCTID='$productid'"; $result=getquery($s); while ($row=mysql_fetch_array($result)) { $useextratitle="$useextratitle $row[PRODUCTID] $row[PRODUCTNAM] "; } } $s="SELECT * FROM viamed_newshop_catagorys where id='$cat' or id='$subcat' order by maincatid"; $result=getquery($s); while ($row=mysql_fetch_array($result)) { $useextratitle="$useextratitle $row[name]"; } $addmeta=str_replace(" ",",",$useextratitle); $s="SELECT * FROM viamed_newshop_shopid where shopid='$shopid' limit 0,1"; $result=getquery($s); while ($row=mysql_fetch_array($result)) { if ($mod=='') { ?>
|
|
|