Stored Procedure Execution with output parameter

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
francis6425
Posts: 15
Joined: Tue Aug 18, 2015 6:48 am

Stored Procedure Execution with output parameter

Post by francis6425 » Sun Jan 24, 2016 12:33 pm

Hi,

Can any one advise on how to call the stored procedure with input and output parameter from Livecode.
I can't find any example on it.

I've a stored procedure that helps to insert a new row in a MYSQL table and then set the primary key to the output parameter.
Using PHP, I'm able to successfully pass input parameters to be inserted and then get the key back from the output parameter.
However I'm so far no able to do it successfully using livecode. Can any experts provide a short sample of how to do it in livecode.

Regards,
Francis

MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Stored Procedure Execution with output parameter

Post by MaxV » Sat Jan 30, 2016 8:50 am

Do you want a program with a GUI, or just a script?
If you want a script, note this:

Code: Select all

myscript opt1 opt2
the variable $1 contains opt1
the variable $2 contains opt2
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w

Post Reply