|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-05-21 23:32 UTC] kalowsky@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 05:00:01 2025 UTC |
Trying odbc_error and odbc_errormsg I got strange strings back instead of the actual error messages; after saving again and reloading I got the correct Error/Message; after new reload I got Strange results again. Code: ===== function printerror($code, $msg, $method="array") { print "<h2>An Error has occured</h2><table border=0><tr><td><b>Code: $code</b></td><td>Message: $msg</td></tr></table>";} $res = odbc_prepare($conn, $stmt); if(!(odbc_execute($res))) printerror(odbc_error($conn),odbc_errormsg($conn)); Results: ======== Code: %?t % Message: ?? $?D ?H Code: %?` % Message: ?t %?? %?? Code: hp Message: major It seems I get parts of my Scripts back...