<?php defined('main') or die('no direct access'); $title = $allgAr['title'].' :: Top Artikel'; $hmenu = 'Top Artikel'; $design = new design ( $title , $hmenu ); $design->header(); $tpl = new tpl('topcowaren'); $tpl->out(0); $erg = db_query("SELECT prefix_waren.cat,hits,prefix_waren.name,prefix_waren.creater,prefix_waren.ssurl,prefix_waren.versand,prefix_waren.mwst,prefix_waren.id,DATE_FORMAT(time,'%d.%m.%Y') as datum FROM prefix_waren LEFT JOIN prefix_warencats ON prefix_warencats.id = prefix_waren.cat WHERE ".$_SESSION['authright']." <= prefix_warencats.recht order by hits DESC LIMIT 0,5"); while ($row = db_fetch_object($erg)) { $r['preismwst'] = $row['creater'] / 100 * $row['mwst'] + $row['creater']; if ( file_exists($row->ssurl)) { $ssurl = '<img width="171" height="171" src="'.$row->ssurl.'" border="0">'; }else{ $ssurl = ''; } $tpl->set('name', $row['name']); $tpl->set('mwst', $row['mwst']); $tpl->set('version', $row['version']); $tpl->set('id', $row['id']); $tpl->set('creater', $row['creater']); $tpl->set('preismwst', $r['preismwst']); $tpl->set('ssurl', $row['ssurl']); $tpl->set_ar_out($r,1); } $tpl->out(2); $design->footer(); ?>
Hier die fehlermeldung
Fatal error: Cannot use object of type stdClass as array in /var/www/web38/html/neues_Script/shop_cms/include/contents/topcowaren.php on line 14
MfG freak
verwendete ilchClan Version: 1.1
Zuletzt modifiziert von freak am 20.02.2008 - 21:30:16