info['admin']) { header('location: /index.php'); die(); } $sid = round((int)$_GET['sid']); $r = round((int)$_GET['r']); ?>
магазин: if( isset($_POST['additemnow']) ) { mysql_query('INSERT INTO `items_shop` ( `item_id`,`kolvo`,`sid`,`r`,`real` ) VALUES ( "'.mysql_real_escape_string($_POST['item_add']).'","1000000000","'.$sid.'","'.$r.'","1" )'); } $sp = mysql_query('SELECT `sid` FROM `items_shop` GROUP BY `sid`'); while( $pl = mysql_fetch_array($sp) ) { echo ''.$pl['sid'].''; } ?> Рраздел магазина: $sp = mysql_query('SELECT `r` FROM `items_shop` WHERE `sid` = "'.mysql_real_escape_string($sid).'" GROUP BY `r`'); while( $pl = mysql_fetch_array($sp) ) { echo ''.$pl['r'].''; } ?>
ОБНОВИТЬ СТРАНИЦУ