Retrieving the COUNT...
Posted: Tue May 20, 2003 11:34 am
I've got this MS SQL query
... and this code...
... and a return of "array". I normally understand how to retieve information from a mssql query... but this is a little different because I'm doing a COUNT. Any suggestions??
Code: Select all
$ms_result = (mssql_query("SELECT count(cellname) FROM cell_table WHERE ((state=27)OR((state=28)AND(pstate_id=0))) AND (current_operator='$uname')"));Code: Select all
$cell_edit = (mssql_fetch_row($ms_result));