here is my code $Query = "SELECT Last_Login and Current_Login from Security where PM_ID=$_SESSION[ID]"; $Getdates = odbc_do($link, $Query); while(odbc_fetch_row($Getdates)) { $Last=odbc_result($Getdates, 1); $Now=odbc_result($Getdates, 2);
Now I get an error that tells me that #2 is out of the range.... Any suggestions