Okay... I am just going to post the code I have used. It doesn't work but I am sure you will all see what I am trying to do - I assume I sort of have it backwards.
$result = mysql_db_query(ysl, "SELECT * FROM users WHERE id='$uid'");
$row = mysql_fetch_array($result);
No errors come up - but the session uid does not set.
Any help appreciated.
Thanks in advance!