You are here: Re: Warning: Unexpected character « PHP Programming Language « IT news, forums, messages
Re: Warning: Unexpected character

Posted by vagos on 11/23/05 01:01

denisb wrote:
> vagos <vagos@freemail.gr> wrote:
>
>>Can someone please tell me why i get the following error ??
>>The strange is that sometimes i get the error and sometimes not !!
>>Also there is no syntax error on line 251
>>Warning: Unexpected character in input: ' in
>>/usr/local/apache/htdocs/functions.php on line 251
>
>
> is there a variable in your line 251 ($_REQUEST['variable'] maybe)
> or in line 250 ?
>
I do not get the same error every time.
Sometimes i get an error in functions.php, sometimes in select_lang.php
config.php etc, in diferent line every time.
The last 10 minutes, i reloaded my site 50 times and i did not get any
error !

This is an example of my members.php

$u = $HTTP_COOKIE_VARS["member"];
$res = mysql_query("SELECT * FROM members WHERE id = '$u'");
while ($r = mysql_fetch_array($result))
{
$name = $r["name"];
$epitheto = $r["last_name"];
$email = $r["email"];
$address = $r["address"];
}

this is an example of lang.php

$lang_main_name = "Name";
$lang_main_epitheto = "Last name";
$lang_main_email = "E-mail";
$lang_main_address = "Address";

Is that a wrong way to write code ??

Thanks
Vagos
> does this variable contain **sometimes** an ' ?
>

If i always get an error, i have to correct my code in xxx line.
Now, i get an error in functions.php line 251, reload page and get error
in config.php line 50, reload page and NO error !

 

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

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