
10-06-2009, 17:02
|
|
|
|
חבר מתאריך: 29.05.02
הודעות: 307
|
|
פשוט לא יאמן העניין....
תודה אחי!
כל שורת שאילתא בגוגל מחזירה תוצאות שונות בתכלית! זה לא יאומן פשוט.
חיפשתי המון וריאציות של סוג כזה של שאילתא ולא הגעתי לשום מקום. דרך השאילתא שלך, מייד הגעתי דרך פורומים איכשהוא לפתרון שגם הוא הזוי אגב.
שים לב:
As you can see from the results above, mysql could not get the recordset returned by the stored procedure while mysqli and PDO could. After some more research, some people mentioned (Bob’s World, php.net) that by adding ‘false,65536′ to the end of the mysql_connect line, mysql could then get recordsets from stored procedures. I tried this and in fact it does work. So by changing
$mysql = mysql_connect('localhost', 'example', 'example');
to:
$mysql = mysql_connect('localhost', 'example', 'example',false,65536);
all the different database extensions work on all tests.
|