Click here to Skip to main content
15,881,882 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: Website copyright India Pin
manchanx8-Mar-15 14:21
professionalmanchanx8-Mar-15 14:21 
QuestionASP Sitemap Pin
Darrylw9915-Feb-15 6:24
Darrylw9915-Feb-15 6:24 
AnswerRe: ASP Sitemap Pin
Lord_Nick6927-Mar-15 7:26
Lord_Nick6927-Mar-15 7:26 
QuestionUnable to bind JQGrid with the json data using html and httphandler Pin
Karthik@201210-Feb-15 18:37
Karthik@201210-Feb-15 18:37 
SuggestionRe: Unable to bind JQGrid with the json data using html and httphandler Pin
Richard MacCutchan10-Feb-15 22:16
mveRichard MacCutchan10-Feb-15 22:16 
QuestionREST API User Authentication Pin
IsoftTech10-Feb-15 8:37
IsoftTech10-Feb-15 8:37 
AnswerRe: REST API User Authentication Pin
Afzaal Ahmad Zeeshan13-Feb-15 1:24
professionalAfzaal Ahmad Zeeshan13-Feb-15 1:24 
Questionusing OUT in PDO and PHP Pin
Jassim Rahma9-Feb-15 1:20
Jassim Rahma9-Feb-15 1:20 
Hi,

I am trying to use OUT parameter with PDO and PHP to return an email address from my stored pocedure but getting this error:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1414 OUT or INOUT argument 13 for routine hrms.sp_web_add_new_employee_leave is not a variable or NEW pseudo-variable in BEFORE trigger' in /home/jassimuser/mybluefile.com/submit_leave.php:37 Stack trace: #0 /home/jassimuser/mybluefile.com/submit_leave.php(37): PDOStatement->execute() #1 {main} thrown in /home/jassimuser/mybluefile.com/submit_leave.php on line 37

this is my code:

PHP
$mysql_query = $mysql_connection->prepare('CALL sp_web_add_new_employee_leave(:param_employee_id, :param_is_paid, :param_category, :param_payment, :param_date_from, :param_date_to, :param_total_days, :param_flight_entitlement, :param_flight_destination, :param_address_while_traveling, :param_leave_remarks, :param_created_user, :reporting_to_email)');

$mysql_query->bindParam(':param_employee_id', $_SESSION["employee_number"], PDO::PARAM_STR);
$mysql_query->bindParam(':param_is_paid', $leave_paid, PDO::PARAM_BOOL);
$mysql_query->bindParam(':param_category', $leave_category, PDO::PARAM_STR);
$mysql_query->bindParam(':param_payment', $leave_payment, PDO::PARAM_STR);
$mysql_query->bindParam(':param_date_from', $leave_from, PDO::PARAM_STR);
$mysql_query->bindParam(':param_date_to', $leave_to, PDO::PARAM_STR);
$mysql_query->bindParam(':param_total_days', $leave_days, PDO::PARAM_STR);
$mysql_query->bindParam(':param_flight_entitlement', $flight_entitlement, PDO::PARAM_STR);
$mysql_query->bindParam(':param_flight_destination', $flight_destination, PDO::PARAM_STR);
$mysql_query->bindParam(':param_address_while_traveling', $address_while_traveling, PDO::PARAM_STR);
$mysql_query->bindParam(':param_leave_remarks', $leave_comment, PDO::PARAM_STR);
$mysql_query->bindParam(':param_created_user', $_SESSION["employee_number"], PDO::PARAM_STR);
$mysql_query->bindParam(':reporting_to_email', $reporting_to_email, PDO::PARAM_STR|PDO::PARAM_INPUT_OUTPUT, 255);
// $mysql_query->bindParam(':param_created_ip', $_SERVER['REMOTE_ADDR'], PDO::PARAM_STR);

$mysql_query->execute();


and line 37 is the ->execute()

How can I fix this please?


Technology News @ www.JassimRahma.com

QuestionRe: using OUT in PDO and PHP Pin
ZurdoDev9-Feb-15 5:05
professionalZurdoDev9-Feb-15 5:05 
QuestionAdd payment option Pin
Super Lloyd6-Feb-15 18:26
Super Lloyd6-Feb-15 18:26 
AnswerRe: Add payment option Pin
Afzaal Ahmad Zeeshan6-Feb-15 20:38
professionalAfzaal Ahmad Zeeshan6-Feb-15 20:38 
GeneralRe: Add payment option Pin
Super Lloyd6-Feb-15 22:15
Super Lloyd6-Feb-15 22:15 
AnswerRe: Add payment option Pin
Afzaal Ahmad Zeeshan6-Feb-15 23:38
professionalAfzaal Ahmad Zeeshan6-Feb-15 23:38 
GeneralRe: Add payment option Pin
Super Lloyd7-Feb-15 0:05
Super Lloyd7-Feb-15 0:05 
GeneralRe: Add payment option Pin
Afzaal Ahmad Zeeshan7-Feb-15 0:09
professionalAfzaal Ahmad Zeeshan7-Feb-15 0:09 
SuggestionRe: Add payment option Pin
Richard Deeming9-Feb-15 3:08
mveRichard Deeming9-Feb-15 3:08 
GeneralRe: Add payment option Pin
Super Lloyd9-Feb-15 10:43
Super Lloyd9-Feb-15 10:43 
Questionwhy (Cannot send session)?! Pin
Jassim Rahma3-Feb-15 21:09
Jassim Rahma3-Feb-15 21:09 
QuestionBorderline programing question sorry.. :'( Pin
Super Lloyd29-Jan-15 3:20
Super Lloyd29-Jan-15 3:20 
AnswerRe: Borderline programing question sorry.. :'( Pin
Richard Deeming29-Jan-15 8:08
mveRichard Deeming29-Jan-15 8:08 
GeneralRe: Borderline programing question sorry.. :'( Pin
Super Lloyd29-Jan-15 12:48
Super Lloyd29-Jan-15 12:48 
AnswerRe: Borderline programing question sorry.. :'( Pin
Kornfeld Eliyahu Peter29-Jan-15 9:00
professionalKornfeld Eliyahu Peter29-Jan-15 9:00 
GeneralRe: Borderline programing question sorry.. :'( Pin
Super Lloyd29-Jan-15 12:49
Super Lloyd29-Jan-15 12:49 
AnswerRe: Borderline programing question sorry.. :'( Pin
Afzaal Ahmad Zeeshan6-Feb-15 20:37
professionalAfzaal Ahmad Zeeshan6-Feb-15 20:37 
GeneralRe: Borderline programing question sorry.. :'( Pin
Super Lloyd6-Feb-15 22:13
Super Lloyd6-Feb-15 22:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.