Reply to Re: unexpected T_VARIABLE

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на 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

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