I did what you have suggested.
This is what I got from the error
Query: call sp_getStudentCourseLoad (100607119) failed. PROCEDURE pmwiki.sp_getStudentCourseLoad can't return a result set in the given context
1312: PROCEDURE pmwiki.sp_getStudentCourseLoad can't return a result set in the given context
ADOConnection._Execute(call sp_getStudentCourseLoad (100607119), false) % line 893, file: adodb.inc.php
This is my stored procedure
CREATE PROCEDURE sp_getStudentCourseLoad (studentid int )
BEGIN
select shortname from course where courseid in
(
select courseid from individual where cuid=studentid
);
END
this is my code
<?
echo "dum";
echo "test";
error_reporting(E_ALL);
require_once("cookbook/adodb/adodb.inc.php");
define('CONNSTR','mysqli://root:password@localhost/pmwiki');
$DB= NewADOConnection(CONNSTR);
$DB->optionFlags["CLIENT_MULTI_RESULTS"] = array( /CLIENT_MULTI_RESULTS/0x20000, 1);
$DB->debug = true;
// Set these parameters for your database:
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/$rs = $DB->Execute("SELECT FROM accounts LIMIT 10");*/
$sql="100607119";
$rs = $DB->Execute("call sp_getStudentCourseLoad ($sql)");
print "<pre>";
print_r($rs->GetRows());
print "</pre>";
?>
Is there a better way to call stored procedure from mysql in php using adodb?? This is really driving me crazy. I really and deeply appreciate all the help, and patience you have extended to me. sigh Is there a light at the end of this tunnel?
Kate