Hi:
This is the error I get
Parse error: syntax error, unexpected $end in D:\Hosting\5310320\html\test\postednormalclassifieds.php on line 595
when I use this code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<body>
<?php
require_once 'config.php';
if (isset($_SESSION['user'])){
echo "Welcome ".$_SESSION['user'];
if (isset($_GET["page"])) { $page = $_GET["page"]; } else { $page=1; };
$start_from = ($page-1) * 20;
$sql = "SELECT * FROM normalposts ORDER BY name ASC LIMIT $start_from, 20";
$rs_result = mysql_query ($sql);
?>
<table>
<tr><td>Name</td><td>Phone</td></tr>
<?php
while ($row = mysql_fetch_assoc($rs_result)) {
?>
<tr>
<td><? echo " "; ?></td>
<td><? echo " "; ?></td>
</tr>
<?php
};
?>
</table>
<?php
$sql = "SELECT COUNT(id) FROM normalposts";
$rs_result = mysql_query($sql);
$row = mysql_fetch_row($rs_result);
$total_records = $row[0];
$total_pages = ceil($total_records / 20);
for ($i=1; $i<=$total_pages; $i++) {
echo "<a href='postednormalclassifieds.php?page=".$i."'>".$i."</a> ";
};
?>
<!-- <div style="float:right" id="right-top"> -->
<br /><br /><br />
<div class="image" width:3000;>
<img src="images/normalpostingbackground.png" height="275px" width="1157px"></img>
<table>
<tr>
<td align ="center">
11/20/2011 <br />
City : <B>Chennai</B> <br />
State: <B>TamilNadu</B> <br /><br />
<img src="images/workerbar.png" width="75" height="25"/><br />
<img src="images/workerbar.png" width="75" height="25"/>
</td>
<td>
<U>Looking for a Realiable Baby Sitter in the Mylapore Area!</U> <br /><br />
<div border="0" style="border-width: 1px; border-color:#000000; width:375px;
border-style: solid;">
Willing to commute <br />
Able to manage 6 month old <br />
Should be fine with coming whenever needed
</div>
</td>
<td>
<div border="0" style="border-width: 1px; border-color:#000000; width:120px; height:120px;
border-style: solid;">
Thumbnail photo of product,service or person goes here <br />
</div>
Posted by: <B><I>Akash05</I></B><img src="images/hearts.png" width="95" /><br /><br />
</td>
<td>
<U>Be Seen! Be Heard!</U> <br /><br />
<div border="0" style="border-width: 1px; border-color:#000000; width:120px; height:120px;
border-style: solid;">
Your Promos <br />
<br />
</div>
</td>
</tr>
</table>
</div>
<?php
}else{ echo "".$_SESSION['user'];
if (isset($_SESSION['user'])){
echo "Welcome ".$_SESSION['user'];
if (isset($_GET["page"])) { $page = $_GET["page"]; } else { $page=1; };
$start_from = ($page-1) * 20;
$sql = "SELECT * FROM normalposts ORDER BY name ASC LIMIT $start_from, 20";
$rs_result = mysql_query ($sql);
?>
<table>
<tr><td>Name</td><td>Phone</td></tr>
<?php
while ($row = mysql_fetch_assoc($rs_result)) {
?>
<tr>
<td><? echo " "; ?></td>
<td><? echo " "; ?></td>
</tr>
<?php
};
?>
</table>
<?php
$sql = "SELECT COUNT(id) FROM normalposts";
$rs_result = mysql_query($sql);
$row = mysql_fetch_row($rs_result);
$total_records = $row[0];
$total_pages = ceil($total_records / 20);
for ($i=1; $i<=$total_pages; $i++) {
echo "<a href='postednormalclassifieds.php?page=".$i."'>".$i."</a> ";
};
?>
<!-- <div style="float:right" id="right-top"> -->
<br /><br /><br />
<div class="image" width:3000;>
<img src="images/normalpostingbackground.png" height="275px" width="1157px"></img>
<table>
<tr>
<td align ="center">
11/20/2011 <br />
City : <B>Chennai</B> <br />
State: <B>TamilNadu</B> <br /><br />
<img src="images/workerbar.png" width="75" height="25"/><br />
<img src="images/workerbar.png" width="75" height="25"/>
</td>
<td>
<U>Looking for a Realiable Baby Sitter in the Mylapore Area!</U> <br /><br />
<div border="0" style="border-width: 1px; border-color:#000000; width:375px;
border-style: solid;">
Willing to commute <br />
Able to manage 6 month old <br />
Should be fine with coming whenever needed
</div>
</td>
<td>
<div border="0" style="border-width: 1px; border-color:#000000; width:120px; height:120px;
border-style: solid;">
Thumbnail photo of product,service or person goes here <br />
</div>
Posted by: <B><I>Akash05</I></B><img src="images/hearts.png" width="95"></img><br /><br />
</td>
<td>
<U>Be Seen! Be Heard!</U> <br /><br />
<div border="0" style="border-width: 1px; border-color:#000000; width:120px; height:120px;
border-style: solid;">
Your Promos <br />
<br />
</div>
</td>
</tr>
</table>
</div>
<?php
}
?>
<!-- BEGIN FOOTER -->
<br /><br /><br /><br /><br /><br />
<hr/>
<!-- <table align="center" cellspacing="32">
<tr>
<td colspan="5"><a href="/india/index.php"><b>Home</b></a></td>
<td> </td>
<td><a href="/sitemap.html"><b>Sitemap</b></a></td>
<td></td>
<td><a href="/india/privacypolicy.html"><b>Privacy Policy</b></a></td>
<td><!--<img name="index_r55_c45_s1" src="/index/images/index_r55_c45_s1.png" width="46" height="107" border="0" id="index_r55_c45_s1" alt="" />--></td>
<td><a href="/india/terms.html"><b>Terms of Use</b></a></td>
<td><a href="/press.html"><b>In the Press</b></a></td>
<td><a href="/india/partners.html"><b>Investment Partners</b></a></td>
<td><a href="/india/listingpolicy.html"><b>Listing Policy</b></a></td>
<td><a href="/india/careers.html"><b>Careers</b></a></td>
<td><a href="http://www.ripplecare.blogspot.com"><b>Blog</b></a></td>
</tr>
</table>
-->
<div align="center">
Copyright © 2011 the Rippleffect
</div>
</body>
</html>
can someone please help?
Thanks🙂