Friday 15 March 2013

php - laravel stored procedure error -


I am facing a downside error while trying to use a stored procedure to register a user.
Any help is greatly appreciated.

Error: SQLSTATE [42000]: Syntax Error or Access Violation: Number of Wrong Arguments for Process 1318 tls_db.insert_customer; 7 is expected, call 0 (SQL: insert insert_customer)

  controller $ user = array ('email' = & gt; input :: find ('email' ), 'Password' = & gt; Input :: find ('password'), 'username' = & gt; input :: find ('username'), 'phone number' => input :: ('Phone Number'), 'Customer Name' = & gt; Input: Receive ('Customer Name'), 'Customer Serum' = & gt; Input :: Receive ('Customer Name'), 'Customer Support' = & gt; ; Input :: Receive ('Customer Address')); $ Data = new user ($ user); $ Data- & gt; Save (); User :: storedProcedureInsert_customer (); Return Redirection: From ('/'); Model Public Stable Functions Stored ProcessInsert Customer () {Return DB :: Statement ('Call InsertCreator'); }   

Your insert_customer process expects seven arguments , But you

DB :: statement (call 'insert_customer?,?' ('' Password ''), input :: receive ('phone number'), input :: Find ('', '', ',',?,?,?) ', (' Customer name '), input :: received (' customer sermail '), input :: find (' customer address'));


No comments:

Post a Comment