Re: [DEBUG HELP]Parse error at the end of a file?
| From: | Todd Eddy | Date: | Thu, 18 May 2000 02:40:24 +0000 |
| Subject: | Re: [DEBUG HELP]Parse error at the end of a file? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-148@lists.php.net to get a copy of this message | ||
Thank you to everyone who replied privately, turns out I was missing two }s
Works fine now.
Todd Eddy wrote:
> 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 tristar@raex.com 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
> tristar@raex.com
> http://www.vrillusions.com/
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Todd Eddy
tristar@raex.com
http://www.vrillusions.com/