This will be some line on your script is missing something, such as a " ' ; } or similar and as there is nothing after line 246 it is encountering an unexpected end of file when it tried to read line 247 (even though that line does not exist, it is saying it is expecting something) can you post/attach your most recent code.

Thanks xan- got another for ya,LOL

I'm getting the following error:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a3185110/public_html/admin/top.php on line 5

<?php
require '../dconn.php';
require '../require.inc.php';
$query = mysql_query("SELECT * FROM $user_table WHERE userid=$id");
$row = mysql_fetch_array($query);
if ($row["type"] != "admin")
{
 die ("Sorry Pal... YOU are not an administrator");
}
?>

any ideas?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.