[DEBUG HELP]Parse error at the end of a file?
[email protected] (Todd Eddy)
| Newsgroups | php.general |
|---|---|
| Message-ID | <[email protected]> |
I am trying to figure out why when I try to look at my page in my web browser, it doesn't show and in the sorce at the end of the files says theres a parse error on line 130. line 130 only has </html>. I have included the last part of that file (top part seems to load just fine). You can look at the page at http://www.vrillusions.com/picarchive/?action=showpage&id=1 If you can send a CC: of any replys to [email protected] I would appreciate it, thank you. <!-- BEGIN MAIN DOCUMENT HERE --> <? parse_str('$QUERY_STRING'); /* THE FOLLOWING SHOULD BE THE VALID QUERYS ?action=showpage&id=1 to show the page */ // HERE ARE SOME IMPORTANT VARIABLES $db = mysql_connect("localhost", "vrillus", "master"); $table = 'picdb'; mysql_select_db("vrillusions_com",$db); // Error Checking if($action) { if($action == "showpage") { if($id) { $action_requested = "showpage"; } else { die("Either you mistyped the id or left it out or the id you specifed doesn't exist"); } } else { die("Either you mistyped the action or left it out or the action you specified doesn't exist"); // Perform the 'showpage' action if($action_requested == "showpage") { // Showpage with picture $sql = "SELECT * FROM $table WHERE id=$id"; // ERROR CODE 1101 OCCURS BELOW $result = mysql_query($sql) or die("An error has occured while processing this page, please notify the webmaster of error code 1101"); // ERROR CODE 1102 OCCURS BELOW $myrow = mysql_fetch_array($result) or die("An error has occured while processing this page, please notify the webmaster of error code 1102"); $id = $myrow["id"]; $count = $myrow["count"]; $address = $myrow["address"]; $description = $myrow["description"]; $date = $myrow["date"]; echo "id: ".$id."<BR>"; echo "count: ".$count."<BR>"; echo "address: ".$address."<BR>"; echo "description: ".$description."<BR>"; echo "date: ".$date."<BR>"; } ?> <HR WIDTH="75%" ALIGN=CENTER SIZE=5> <!-- BEGIN FOOTER FILE INCLUDE --> <? readfile($DOCUMENT_ROOT."/sdocs/footer.txt"); ?> <!-- END FOOTER FILE INCLUDE --> <!-- END TYPING HERE --> </TD> <!-- END MAIN DOCUMENT --> </TR> </TABLE> </BODY> </HTML> <--- THAT IS LINE 130 -- Todd Eddy [email protected] http://www.vrillusions.com/