Posted by pangea33 on 12/24/06 03:39
_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
As in your case, this is often caused by a missing semi-colon.
$r = mysql_fetch_array($result)
Navigation:
[Reply to this message]
|