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]
|