note 81117 added to function.mssql-rows-affected

From: Date: Thu, 14 Feb 2008 19:05:34 +0000
Subject: note 81117 added to function.mssql-rows-affected
Groups: php.notes 
Request: Send a blank email to php-notes+get-136150@lists.php.net to get a copy of this message
I had the same problem as Pierre, but I think it could be a little bit better if the code was like the one above: <?php function update($sql){ $result = mssql_query($sql,$link); if (function_exists('mssql_rows_affected')) { return mssql_rows_affected($link); } else { $result = mssql_query("select @@rowcount as rows", $link); $rows = mssql_fetch_assoc($result); return $rows['rows']; } } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 200.228.89.133 ---- Manual Page -- http://www.php.net/manual/en/function.mssql-rows-affected.php Edit -- https://master.php.net/note/edit/81117 Del: integrated -- https://master.php.net/note/delete/81117/integrated Del: useless -- https://master.php.net/note/delete/81117/useless Del: bad code -- https://master.php.net/note/delete/81117/bad+code Del: spam -- https://master.php.net/note/delete/81117/spam Del: non-english -- https://master.php.net/note/delete/81117/non-english Del: in docs -- https://master.php.net/note/delete/81117/in+docs Del: other reasons-- https://master.php.net/note/delete/81117 Reject -- https://master.php.net/note/reject/81117 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136150) next »