[snip] $sql = "SELECT * FROM users WHERE username='$username' AND password='$password'"; $result = odbc_exec($dbConnection, $sql); while ($rows = odbc_fetch_array($result)) { //This doesn't work with odbc_fetch_object either print $rows->COLUMNNAME; } [/snip] For odbc_fetch_array you would have to use print $rows['COLUMNNAME']; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php