Parse error: syntax error, unexpected '<' on line 154 >


#1

~Please Help!~

<?php
include('../global.php');
if ($_GET['Type']){
$type = mysql_real_escape_string($_GET['Type']);
}else{
$type = 2;
}
$page = 1;
if ($_GET['page']){
$page = mysql_real_escape_string($_GET['page']);
}
if ($page > 1){
$startFrom = (($page - 2) * 21);
}else{
$startFrom = 1;
}
if ($_GET['Sort']){
$sort = mysql_real_escape_string($_GET['Sort']);
if ($type == 0){
$c = mysql_query("SELECT * FROM `shop` WHERE `type`='$sort' AND `accepted`='1' AND `islimited`='1' ORDER BY id DESC LIMIT $startFrom, 21");
}elseif ($type == 1){
$c = mysql_query("SELECT * FROM `shop` WHERE `type`='$sort' AND `accepted`='1' AND `islimited`='1' ORDER BY id DESC LIMIT $startFrom, 21");
}elseif ($type == 2){
$c = mysql_query("SELECT * FROM `shop` WHERE `type`='$sort' AND `accepted`='1' AND `islimited`='0' ORDER BY id DESC LIMIT $startFrom, 21");
}elseif ($type == 3){
$c = mysql_query("SELECT * FROM `shop` WHERE `type`='$sort' AND `accepted`='1' ORDER BY numbersold DESC LIMIT $startFrom, 21");
}
}else{
if ($type == 0){
$c = mysql_query("SELECT * FROM `shop` WHERE `accepted`='1' AND `islimited`='1' ORDER BY id DESC LIMIT $startFrom, 21");
}elseif ($type == 1){
$c = mysql_query("SELECT * FROM `shop` WHERE `accepted`='1' AND `islimited`='1' ORDER BY id DESC LIMIT $startFrom, 21");
}elseif ($type == 2){
$c = mysql_query("SELECT * FROM `shop` WHERE `accepted`='1' AND `islimited`='0' ORDER BY id DESC LIMIT $startFrom, 21");
}elseif ($type == 3){
$c = mysql_query("SELECT * FROM `shop` WHERE `accepted`='1' ORDER BY numbersold DESC LIMIT $startFrom, 21");
}
}
?>

<?php if ($logged == true){ ?> Shop is in WIP!
Upload Item Create

<?php } ?> Store Type Rares

Main Items

Most Popular
Sort By Hats
Eyes
Mouths
Shirts
Pants
Shoes
Backgrounds
Accessories
Packages
<?php $o = 0; $cc = mysql_num_rows($c); for ($count = 1; $count <= $cc; $count ++){ $cr = mysql_fetch_array($c); $o ++; ?> <?php if ($o == 7){ echo ''; $o = 0; } } ?>
style="position: absolute;"<?php } ?> width="100" height="195" border="0" /> <?php if ($cr['islimited'] != 0){ ?> <?php } ?>
<?php if (strlen($cr['Name']) > 50){ print_r(substr($cr['Name'], 0, 50) . ".."); }else{ print_r($cr['Name']); } ?>

By: <?php $ceoid = $cr['creatorid']; $creatorarray = mysql_fetch_array(mysql_query("SELECT * FROM `accounts` WHERE `id`='$ceoid'")); print_r("" . $creatorarray['Username'] . ""); ?>
<?php if ($cr['price'] == '0'){ print_r("" . $cr['reebprice'] . " Gold Coins"); }else{ print_r("" . $cr['price'] . " Bucks"); } ?>


<?php
if ($type == 0){
$sql = "SELECT COUNT(id) FROM shop WHERE `accepted`='1' AND `islimited`='1'";
}else{
$sql = "SELECT COUNT(id) FROM shop WHERE `accepted`='1' AND `islimited`='1'";
}
$rs_result = mysql_query($sql,$con);
$row = mysql_fetch_row($rs_result);
$total_records = $row[0];
$total_pages = ceil($total_records / 21);
if ($page >1){
?>
Back
<?php
}
?>
    Page <?php print_r($page); ?> of <?php print_r($total_pages); ?>
<?php
if ($page < $total_pages){
?>
    
Next
<?php
}


#2

Someone Please help!