Re: Re: Help a rookie with a little code problem?
| From: | Ryan Adams | Date: | Tue, 25 Jul 2000 17:37:34 +0000 |
| Subject: | Re: Re: Help a rookie with a little code problem? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-8103@lists.php.net to get a copy of this message | ||
Add a ; at the end of line 10
On Wed, Jul 19, 2000 at 04:11:12PM +0200, Meir Kriheli - MKsoft wrote:
> There's a ; missing at the end of line 10
>
> > As a person more used to ASP I'm confused here. I get the error below when
> I
> > run the code I've shown. If I comment out the lines after closing the db
> > connection the code works but obviously I get no redirect. If I leave only
> > the re-direct code it works. Combine the two and oops!.....no joy. Any
> help
> > with this is appreciated as I'm flumoxed.
> >
> > Parse error: parse error in C:\Inetpub\wwwroot\PHP_guide\deleteOK.php on
> > line 12
> >
> > 01. <?
> > 02. $reviewID=$HTTP_GET_VARS["ID"];
> > 03.
> > 04. $objConn = @odbc_connect( 'reviews','david','pass') or
> > 05. die( "Query failed: error was '$php_errormsg'" );
> > 06.
> > 07. $sqlText = "DELETE * FROM reviews WHERE pubID= ".$reviewID;
> > 08.
> > 09. odbc_exec( $objConn, $sqlText );
> > 10. odbc_close($objConn)
> > 11. // If I comment out the following lines the above code works but no
> > redirect
> > 12. $target
> > ="editReviews.php?passMonth=".$HTTP_GET_VARS["passMonth"];
> > 13. header("Location: ".$target);
> > 14. exit;
> > 15. ?>
>
> Meir Kriheli
> MKsoft computer systems
>
> 'There's someone in my head but it's not me" - Pink Floyd
>
>
> --
> 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
---end quoted text---