update
I changed this:
colname_welcome = "-1";
if (isset()) {
$colname_welcome = (get_magic_quotes_gpc()) ? : addslashes();
}
To this:
$colname_welcome = "-1";
if (isset($_SESSION['UID']) || $_SESSION['UID'] != '') {
$colname_welcome = (get_magic_quotes_gpc()) ? $_SESSION['UID'] : addslashes($_SESSION['UID']);
I had this working on a another page and just copied it and pasted it. It is working now. Is this ok?