Hi, below is my script which was working fine before and i have looked at the code for the past 2 hours but still get this error: "Parse error: parse error, unexpected $end in c:\phpdev\www\bwh\project\my.details.php on line 84"
I am on localhost, win2k machine,PHP Version 4.3.1. As you can see below it really a pretty simple script and line 84 is the last line AFTER php terminates, Please help. heres my code: <?php session_start(); header("Cache-control: private"); //IE 6 Fix require_once("configbwh.php"); error_reporting (E_ALL); if(isset($_SESSION['my_user']) && isset($_SESSION['my_ccno'])) { $mmy_user=$_SESSION['my_user']; $mmy_ccno=$_SESSION['my_ccno']; $connected=mysql_connect ("$hostt", "$userr", "$passs") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("$db"); $tt = "SELECT ptype, count(*) FROM list_slave WHERE ptype IN ('1', '2', '3','4','5') and userr='".$mmy_user."' and ccno='".$mmy_ccno."' GROUP BY ptype"; if($res = mysql_query($tt)) { $x = 1; while($row = mysql_fetch_row($res)) { $var[$x++] = $row[1]; } } include("my.top.php"); if (isset($var[1])){ $one = $var[1];} else {$one = 0;} if (isset($var[2])){ $two = $var[2];} else {$two = 0;} if (isset($var[3])){ $thr = $var[3];} else {$thr = 0;} if (isset($var[4])){ $fou = $var[4];} else {$fou = 0;} if (isset($var[5])){ $fiv = $var[5];} else {$fiv = 0;} $tot=$one + $two + $thr + $fou + $fiv; ?> <p> <b>W</b>elcome, this is your "MyList" control panel.<br> You may add/save all your favourite plans here for later comparision.<br> You can add upto 5 plans at a time and edit, delete them as and when you so wish.<br> </p> <table width="40%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td colspan="2" NOWRAP><div align="center"><font color=red><b>Your current list of saved plans are:</div></font></b></td> </tr> <tr> <td width="24%"><strong>S</strong>hared:</td> <td width="38%"><?php echo $one; ?></td> </tr> <tr> <td><strong>D</strong>edicated:</td> <td><?php echo $two; ?></td> </tr> <tr> <td><strong>R</strong>eseller</td> <td><?php echo $thr; ?></td> </tr> <tr> <td><strong>C</strong>oLocation:</td> <td><?php echo $fou; ?></td> </tr> <tr> <td nowrap><strong>F</strong>reeHosting:</td> <td><?php echo $fiv; ?></td> </tr> <tr> <td colspan=2><strong>You have totally <font color=red><?php echo $tot; ?></font> plans saved. </strong></td> </tr> </table> <p><br> If you have any questions use the "contact us" link at the side and we will get back to you ASAP.<br> <br> Cheers,<br> -The BWH team.<br> </p> <?php include("my.bottom.php"); ?> // This is line 84 What do you think is there problem? some settings in php.ini or something? Cheers, -Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php