Have you managed to get this to work yet?
If not, I suggest that first you see if the query returns results without using "bind" to ckech the syntax and that data is actually present. If it does you will know the problem is getting the stored procedure to work.
Personally, I see nothing wrong with continuing to pass the SQL as as parameter directly, but for safety ensure :
$userId = (INT) $user->get('id');
and possibly check it is nonzero.
If not, I suggest that first you see if the query returns results without using "bind" to ckech the syntax and that data is actually present. If it does you will know the problem is getting the stored procedure to work.
Personally, I see nothing wrong with continuing to pass the SQL as as parameter directly, but for safety ensure :
$userId = (INT) $user->get('id');
and possibly check it is nonzero.
Statistics: Posted by CharlieBigley — Sat Aug 17, 2024 9:36 am