Posted by Carl on 10/22/05 03:13
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.
[Back to original message]
|