ODBC Query max()

From: Date: Sat, 15 Mar 2003 05:46:50 +0000
Subject: ODBC Query max()
Groups: php.windows 
Request: Send a blank email to php-windows+get-19014@lists.php.net to get a copy of this message
I'm trying to extract one record that has largest sequence ID number for an employee, so I've tried below but doesn't work. Help. $mQuery = "EmployeeID = '$user'"; $mCur = odbc_exec( $mCnx, "select ID=max(ID),Date,TimeIn,TimeOut,StationIP from Clocks where $mQuery" );

« previous php.windows (#19014) next »