setup SQL statement
$SQL = " SELECT * FROM jobalert ";
$SQL = $SQL . " WHERE uname = '$uname' ";
this will produce a double space between jobalert and WHERE. Not sure if that has nefin to do with it. Why not just do:
$SQL = "SELECT * FROM jobalert WHERE uname='$uname'"??
# execute SQL statement
$retid = mysql_db_query($db, $SQL, $cid);
this should be:
$retid = mysql_db_query($SQL, $cid);
Hope that helps.
BIOSTALL