Thanks for all your help so far. I don't know if you can help me any more but everything I try seems to come back to the same parse error on the
$result=mysql_query
line.
I have pulled out most of my hair
The complete code I am using is
$linkID = @mysql_connect("sql-01.portlandpremium", "s*****s", "****"); // DB connection, username & password to access DB
mysql_select_db("s*****s", $linkID);
$result=mysql_query("SELECT * FROM login WHERE username="$logged_on"" , $linkID) or die ("Sorry, mistake somewhere.");
$row=mysql_fetch_array($result);
$school_id_session = $row["school_id"]; // Gets the value of table based on field name 'school_id'
$logged_on = $HTTP_POST_VARS['username'];
//Register as session variables:
session_register("school_id_session");
$school_id_session = $row["school_id"];
session_register("logged_on");
I think I understand a little more about the query syntax, and I will go and try to study it when I have some time.
Any further comments will be graciously recieved
Seanπ