You are here: Re: unexpected t_variable « PHP Programming Language « IT news, forums, messages
Re: unexpected t_variable

Posted by Hendri Kurniawan on 12/24/06 03:37

See the actual error code... It will say which line the problem lies.
In this instance... see the line:

$r = mysql_fetch_array($result)

You missed the terminating character (semi-colon).

Hendri

_Skare_Krow_ wrote:
> I'm having trouble with my code and it barfs on the last line I have
> included the lines before it are below
> $histid = $_GET["histid"];
> $sql = "select * from main_hist where histid = '$histid'";
> $result = mysql_query($sql);
> $r = mysql_fetch_array($result)
> $maint_done = $r["maint_done"];
> does anyone see anything wrong with this or do I need to include more of
> the code.
>
> Aaron

 

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

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