note 86645 added to function.mysql-connect
| From: | Contact at LinuxIntro dot com | Date: | Tue, 28 Oct 2008 05:34:12 +0000 |
| Subject: | note 86645 added to function.mysql-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-145852@lists.php.net to get a copy of this message | ||
When you connect and expect to use a stored procedure,you must pass a special flag to MySQL via the
connect command, otherwise you will not get the results returned, and it will result in this error:
PROCEDURE AlexGrim.GetStats_ForumCategories can't return a result set in the given context
To fix this, change you connection string, adding ",false,65536" as the last 2 fields:
$this->con = mysql_connect($this->h,$this->u,$this->p,false,65536);
----
Server IP: 209.41.74.194
Probable Submitter: 74.215.120.122
----
Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php
Edit -- https://master.php.net/note/edit/86645
Del: integrated -- https://master.php.net/note/delete/86645/integrated
Del: useless -- https://master.php.net/note/delete/86645/useless
Del: bad code -- https://master.php.net/note/delete/86645/bad+code
Del: spam -- https://master.php.net/note/delete/86645/spam
Del: non-english -- https://master.php.net/note/delete/86645/non-english
Del: in docs -- https://master.php.net/note/delete/86645/in+docs
Del: other reasons-- https://master.php.net/note/delete/86645
Reject -- https://master.php.net/note/reject/86645
Search -- https://master.php.net/manage/user-notes.php