hey, i was wondering if someone could tell me what is wrong with my script, its a simple script and i think it looks fine, but whenever i run it ket this errors msg saying:
Parse error: parse error, unexpected ';', expecting T_VARIABLE or '$' in F:\Websites\mrsbsgifthouse\cart\cart.cat.productstest.php on line 28
here is my script:
<html>
<head>
<title> Product List </title>
</head>
<body bgcolor="#ffffff">
<h1>Products</h1>
<table>
<tr>
<?
$y = 7;
$count =0;
for ($x=0; $x <=$y; $x++)
{
?>
<td>
<div align="center">
<a href="localhost">OUR PRICE $18.00</a><br /></a>
</div>
</td>
<?
$count = ++;
echo $count;
if ($y = 3)
{
?>
</tr>
<tr>
<?
$count =0;
}
}
?>
</tr>
</table>
</body>
</html>
Parse error: parse error, unexpected ';', expecting T_VARIABLE or '$' in F:\Websites\mrsbsgifthouse\cart\cart.cat.productstest.php on line 28
here is my script:
<html>
<head>
<title> Product List </title>
</head>
<body bgcolor="#ffffff">
<h1>Products</h1>
<table>
<tr>
<?
$y = 7;
$count =0;
for ($x=0; $x <=$y; $x++)
{
?>
<td>
<div align="center">
<a href="localhost">OUR PRICE $18.00</a><br /></a>
</div>
</td>
<?
$count = ++;
echo $count;
if ($y = 3)
{
?>
</tr>
<tr>
<?
$count =0;
}
}
?>
</tr>
</table>
</body>
</html>