Afternoon,
I can't seem to make this work. I have the following query that gets its variables from a form:
$query = "SELECT S.SID,S.LastName,S.FirstName,A.Application_Date,A.Application_Score,A.One_Pref,A.Two_Pref,A.Three_Pref,A.Four_Pref,
A.Five_Pref,AC.GPA,AC.Year_Of_Grad
FROM AllStudent_Test.Student S, Res_Life_Dev.AcademicTbl AC, Res_Life_Dev.ApplicationTbl A, Res_Life_Dev.PersonTbl P
WHERE S.SID = AC.CampusID
AND S.SID = A.CampusID
AND S.SID = P.CampusID
AND A.Position_Requested Like '%$Position%'
AND A.Application_Score = '$Score'
AND A.One_Pref = '$Area'
ORDER BY $order";
And the url sorting works fine...as long as I only have 2 variables Position and Score when I add One_Pref=$Area it dumps the value for area every time. However it keeps position and score.
I used this for the URL sort .
echo "<a href=\"{$_SERVER['PHP_SELF']}?Position_Requested=$Position&One_Pref=$Area&Application_Score=$Score&order=$heading\">$heading</a>";
I echoed out Position, Area and score. Every time I submit the form the first time its fine and shows the values submitted BUT when I click on the URL to sort the results the Area echoed changes from the value submitted to '' Position and score remain the same. HOWEVER the url retains the value for area that was submitted.
I'm stumped. Any thoughts would be great.
Thanks
Laura