|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-11-03 16:08 UTC] rquadling@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 01:00:01 2026 UTC |
Description: ------------ The example reads: Example #1 mssql_get_last_message() example <?php // Connect to MSSQL mssql_connect('KALLESPC\SQLEXPRESS', 'sa', 'phpfi'); mssql_select_db('php'); // Make a query that will fail $query = @mssql_query('SELECT * FROM [php].[dbo].[not-found]'); if(!$query) { // The query has failed, print a nice error message // using mssql_get_last_message() die('MSSQL error: ' . mssql_get_last_error()); } ?> The line die('MSSQL error: ' . mssql_get_last_error()); should be die('MSSQL error: ' . mssql_get_last_message()); Reproduce code: --------------- Check http://www.php.net/manual/en/function.mssql-get-last-message.php