- Where Developers Learn, Share, & Build Careers
As I call my SP, it only gives me the first result, and on the second call, Returns: / P>
Error: SQLSTATE [HY000]: General error: 2014 can not execute questions, while other unanswered questions are active. Consider using PDOStatement :: fetchAll (). Alternatively, if your code is only running against mysql, then you can enable query buffering by setting the PDO: MYSQL_ATTR_USE_BUFFERED_QUERY setting. Well, I have examined the related questions as some suggested by Staxahovarflow gave me this idea, but when I tried it did not work. This is a loop inside my function that makes my SP call:
foreach ($ filenames $ value) {$ queryssid = "call GetUniqueSSIDByCategoryCombine ('$ username ',' $ Value '); "; $ DataAssenseId = $ this-> User- & gt; Query ($ queryssid); Public relations ($ dataUniqueSSID); } This is my sp:
make DEFINER = 'root` @ localhost process' GetUniqueSSIDByCategoryCombine` (URI VARARAR (50), file name VARCHAR ( 50)) Select Start (Transaction_details.assid) AS 'SSID', transaction_details.protocol AS 'protocol', transaction_details transaction_details from transaction.filename, Transaction Transaction where transaction_details.uid_filename_link = TRANSACTION.uid_filename_link and transaction_details.uid_filename_link = (Select transaction (Transaction .uid_filename_link) where transaction by transaction.uid = uid and transaction.filename = filename) row_id; END What could possibly be the solution This is my second day dealing with this error and it is kinda disappointing. Thanks in advance.
Oh well, this is my PHP version which is the culprit PHP 5.3.1, Advanced for
Comments
Post a Comment