You are here: Re: unexpected T_VARIABLE « All PHP « IT news, forums, messages
Re: unexpected T_VARIABLE

Posted by Ian Davies on 10/22/05 12:33

Thanks carl
that was it
Ian
"Carl" <_Nospam_@_DO_NOT_.USE> wrote in message
news:yuf6f.17958$6e1.14683@newssvr14.news.prodigy.com...
> Ian Davies wrote:
> > Hello
> > I am getting the following error
> >
> > Parse error: parse error, unexpected T_VARIABLE in
> > e:\domains\i\mysite.co.uk\user\htdocs\SaveOrder.php on line 16
> >
> > I cant see what is wrong with line 16. can you help? Here is the code
> > (simplified). Line being the SQL statement
> >
> >
> > <html>
> > <head>
> > <title>Untitled Document</title>
> > </head>
> >
> > <body>
> >
> >
> > <?php
> > require_once('connection.php')
> >
> > $insert = "INSERT INTO tOrderItem (QuestionNo) VALUES (5)";
> >
> > $add_order = mysql_query($insert) or die('Query failed: ' .
> > mysql_error());//$conn->
> >
> > mysql_close($conn);
> >
> > ?>
> > </form>
> > <p></body>
> > </html>
> >
> >
>
> the line:
> require_once('connection.php')
> should read:
> require_once('connection.php');
>
> Note the ending semicolon.
>
> Cheers,
> Carl.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация