Jump to content

Can't figure out simple parse error


NickG21

Recommended Posts

Hey everyone, im getting this error on a page where im trying to redisplay cart info from a temporary table that's setup.  Here's the error and the code:

Parse error: syntax error, unexpected '>' in .../order.php on line 25

 

Line 25:

 

        		echo '<tr><td width="250px"><a href="products.php?id=' . $row['PrID'] . '"> ' . $row['PrDispName'] . '</a></td><td rowspan="2"><img src="' . $row['PrImage'] . '" alt=' . $row['PrName'] . '" height="50px" width="50px"></td></tr>';

 

code:

	/*Update tblCustomer with CC Information*/
$sqlCCUpdate = "UPDATE tblCustomer set CuCCType = '" . $CCardType . "', CuCCNum = '" . $CCNum . "', CuCCSVC = '" . $CCCSV . "', CCExpDate= '" . $CCMonth . $CCYear . "',CCName='" . $CCName . '" WHERE CuSessID ="' . $_COOKIE['PHPSESSID'] . '";
  	echo $sqlCCUpdate;
  	$rssqlCCUpdate = mysql_query($sqlCCUpdate);
  	
  	/*Get Products from Cart*/
$SQLCuCart = "SELECT CartPrID, CartPrQty from tblCart WHERE CartSessionID = ' . $CuID . '";
$rsSQLCuCart = mysql_query($SQLCuCart);
?>

<div id="content">
<table>
	<?php
while($PrIDs = mysql_fetch_array($rsSQLCuCart)){
		$sql = "SELECT * from tblProduct where PrID=' . $PrIDs['CartPrID'] . '";
		$result = mysql_query($sql);
		while($row = mysql_fetch_array($result)){
        		echo '<tr><td width="250px"><a href="products.php?id=' . $row['PrID'] . '"> ' . $row['PrDispName'] . '</a></td><td rowspan="2"><img src="' . $row['PrImage'] . '" alt=' . $row['PrName'] . '" height="50px" width="50px"></td></tr>';
        		echo '<tr><td>$' . $row['PrPrice'] . '</td></tr>';
        		echo '<tr><td>Qty:' . $PrIDs['CartPrQty'] . '<hr/></td>';
        		echo '</tr>';
        		$total = $row['PrPrice'] * $PrIDs['CartPrQty'];
        		
			}
			$_SESSION['total'] += $total;
		}	



	?>
</table>
</div>		

 

thanks for anything in advance!!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.