ODBC Query max()

From: Date: Wed, 12 Mar 2003 21:56:11 +0000
Subject: ODBC Query max()
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-26327@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" ); ------------------------------------------------- This mail sent through ISOT. To find out more about ISOT, visit http://isot.com

« previous php.db (#26327) next »