Quantcast
Channel: West Wind Message Board Messages
Viewing all articles
Browse latest Browse all 10393

Re: Connect to MySql

$
0
0
Re: Connect to MySql
Web Connection 5.0
Re: Connect to MySql
10/13/2012
09:38:44 PM
3MB1AE71R Show this entire thread in new window
Gratar Image based on email address
From:
Luca
To:
Attachments:
None
Fantastic!
I will be very happy to build a new VFP web application with Web Connection :)
Thank you to all again


Luca,

Here's some actually running code I tried out quickly:

CLEAR *** It's important to get the driver to match *** what is installed on your machine lcConnect = "DRIVER={MySQL ODBC 5.2w Driver};" +; "SERVER=127.0.0.1;" + ; "DATABASE=Test;" +; "USER=rstrahl;" +; "PASSWORD=wwind;" +; "OPTION=3;" ? lcConnect SET CLASSLIB to wwSQL Additive loSql = CREATEOBJECT("wwSql") IF (!loSql.Connect(lcConnect)) ? loSql.cErrorMsg RETURN ENDIF lcCompany = "West Wind" lnCount = loSql.Execute("select * from customers where company=?lcCompany") ? lnCount ? loSql.cErrorMsg lcCompany = "East Wind" ldUpdated = DateTime() llSuccess = loSql.ExecuteNonQuery("insert into Customers (company,updated) values (?lcCompany,?ldUpdated)")

+++ Rick ---


dear friends,
I need to connect to a MySql database through web only to read tables.
The MySql database is hosted on Linux and I have to make (possibly) an automatic procedure connecting to database from web, executing some query, then disconnectig.
Please, what is the procedure to connection?
Please, is it possible? How to connect from web?
Thank you very much




Viewing all articles
Browse latest Browse all 10393

Trending Articles