0

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.

0

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?

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.