Search found 16 matches

by tanjc
Mon Feb 09, 2015 11:05 am
Forum: Databases
Topic: Insert DataGrid Data to MYSQL Database
Replies: 5
Views: 10773

Re: Insert DataGrid Data to MYSQL Database

Hi Bangkok, I realised that I have a problem with the repeat loop. I changes the script and still encounter the same problem. I don't know where i go wrong, here's the new script: Global gConnectionID on mouseUp databaseConnect put the dgData of group "DataGrid1" into tData put the dgIndexes of grou...
by tanjc
Mon Feb 09, 2015 9:01 am
Forum: Databases
Topic: Insert DataGrid Data to MYSQL Database
Replies: 5
Views: 10773

Re: Insert DataGrid Data to MYSQL Database

Hi Bangkok, After amending to "answer error "There was a problem adding the record to the database:" & cr & tSQL I encountered this error message: There was a problem adding the record to the database: Insert into test (ln, desc) values (:1, :2) I am not sure what caused the probelm. Please help. Th...
by tanjc
Mon Feb 09, 2015 5:54 am
Forum: Databases
Topic: Insert DataGrid Data to MYSQL Database
Replies: 5
Views: 10773

Insert DataGrid Data to MYSQL Database

Hi, I hope some expert could help me with the problem below. Thanks a lot if you could help. I am new to Livecode DataGrid and I am exploring how to insert data in the DataGrid to MYSQl database. I encountered the following error message: You have an error in your SQL syntax check the manual that co...
by tanjc
Sat Mar 01, 2014 3:39 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to pupulate mysql data to the combo box
Replies: 13
Views: 9067

Re: How to pupulate mysql data to the combo box

Hi Klaus & Simon,

I changed the script of the combo box using the on mouseUp function instead of on menuPick function. The data was populated into the combo box now.

Thanks all for your help.
by tanjc
Sat Mar 01, 2014 2:50 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to pupulate mysql data to the combo box
Replies: 13
Views: 9067

Re: How to pupulate mysql data to the combo box

Hi Klaus, tData is definitely not empty, otherwise I wouldn't be able to push the data into the combo box using the push button. The script I showed you earlier is the object script for the combo box button, is this the right place to put this script? I am not sure what you mean by script for the op...
by tanjc
Fri Feb 28, 2014 5:15 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to pupulate mysql data to the combo box
Replies: 13
Views: 9067

Re: How to pupulate mysql data to the combo box

Hi Klaus, As suggested, I changed the codes to put tData into button "a1ComboBox". When I clicked on the down arrow on the combo box nothing appear but when I created a Push Button and put the same script into the on mouseUp function I can pushed the data into the combo box. Strange why it doesn't w...
by tanjc
Fri Feb 28, 2014 4:33 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to pupulate mysql data to the combo box
Replies: 13
Views: 9067

Re: How to pupulate mysql data to the combo box

Hi Klaus, Here's my new script: on menuPick pItemName global gConnectionID if gConnectionID is not a number then answer error "Please connect to the database first." exit to top end if -- construct the SQL (this selects all the data from the specified table) put "a1" into tTableName -- set this to t...
by tanjc
Fri Feb 28, 2014 3:44 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to pupulate mysql data to the combo box
Replies: 13
Views: 9067

Re: How to pupulate mysql data to the combo box

Hi Bangkok & Simon,

Thanks for your reply. I have tried all the methods you've mentioned above, it still doesn't populate the data into the combo box.

Do I need to make any changes to the Object Inspector (Basic Properties)?

Is there anything wrong with my script?

Regards,
Janet Tan.
by tanjc
Fri Feb 28, 2014 11:25 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: How to pupulate mysql data to the combo box
Replies: 13
Views: 9067

How to pupulate mysql data to the combo box

Hi, I need help with the script below. I couldn't get MySQL data into the combo box. I am not sure whether the problem lies with "put tData into button "button id 1010" I tested by creating a pushup button to populate tData into a text field, No problem I can see all the data ("put tData into text "...
by tanjc
Sat Aug 31, 2013 4:12 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Database Connection
Replies: 0
Views: 1504

Database Connection

Hi, I am trying to use Amazon Web Service (relational database service(RDS) : MySQL), I need help on how to connect to Amazon RDS. I have no problem connecting to my localhost using the following connection parameters: put "localhost" into tDatabaseAddress put "dbname" into tDatabaseName put "dbuser...
by tanjc
Sun Jun 02, 2013 5:35 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: MySQL Update syntax
Replies: 5
Views: 7221

Re: MySQL Update syntax

Thanks all for your input and suggestions. Bangkok suggestions work for me.
by tanjc
Sun Jun 02, 2013 5:33 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: MySQL Update syntax
Replies: 5
Views: 7221

Re: MySQL Update syntax

Thank you bangkok, you save my day. I got it right now. It is actually the ' ' that causes the problem. 2 tips : -it might be better to avoid syntax with parameters. Instead of put "UPDATE " & tTableName & " SET (" & tFields & ") = VALUES(:1,:2) WHERE " & user_id &" =" & tuser_id & " "into tSQL revE...
by tanjc
Fri May 31, 2013 3:58 pm
Forum: Getting Started with LiveCode - Experienced Developers
Topic: MySQL Update syntax
Replies: 5
Views: 7221

MySQL Update syntax

Hi, I struggle with the MySQL update syntax for the whole day but still couldn't find a solution. I hope some expert could help me with the UPDATE syntax. put "personal_info" into tTableName put "user_addr1", "user_addr2" into tFields put field "fld_piUserID" into tuser_id put field "fld_addr1" into...
by tanjc
Sun May 19, 2013 7:42 am
Forum: Getting Started with LiveCode - Experienced Developers
Topic: Paypal payment button
Replies: 2
Views: 2924

Paypal payment button

Hi,

I need help on how to incorporate / integrate the Paypal payment button in Livecode. Paypal provide the script for the button but how can I make it work, like all other e-commerce system, when a user click on the button, it will send them to the Paypal login page.

Thanks for your help.
by tanjc
Sun May 19, 2013 7:32 am
Forum: Getting Started with LiveCode - Complete Beginners
Topic: How do I import a image file
Replies: 3
Views: 3341

Re: How do I import a image file

Thanks very much to Klaus and Dixie. The codes you provide are very useful, exactly what I am looking for.
I am new to LiveCode and have a lot to learn from you guys.