I have a easy select query
$sql = "SELECT `testName`, `percentile`, `dateTaken`, `correct`, `total`, `timeSpent` FROM `results` WHERE `uniID` = 5 AND `userID` = $_SESSION[userid] ORDER BY `dateTaken` ASC";
userID is set to
varchar 250
the query works fine if I am looking for a userID that is a number but when looking for a userID that is letters it returns blank. Is there a simple reason for this ?
Thanks