Dear all,
Is that something I have to do for using SQLEXEC() for insert record at MySQL from form text?
I have a input from form.text:
xdate="2004-06-28"
xcode="ABC1"
Than, I have to save xdate & xcode at MySQL with :
NumRows = SQLEXEC(myConnection, "INSERT INTO mydata (date,code) WITH ('"+xdate+"','"+xcode+"')","cursor1")
But, the problem is sometime I can save that value to MySQL but sometime the value not save at MySQL. So is that something I have to do that I miss while using INSERT at SQLEXEC?
Because I think if I got wrong at SQLEXEC statement, it will not work from begining, right?
I also already try this program at 2 different computer, and the MySQL also install at localhost, but I still get the same problem.
Maybe someone could give reason for my problem. I use VFP 8
Thank you in advance.
NumRows = SQLEXEC(myConnection, "select mbarang.kdbrg,mbarang.namabrg,mjenis.namajenis,;
Is that something I have to do for using SQLEXEC() for insert record at MySQL from form text?
I have a input from form.text:
xdate="2004-06-28"
xcode="ABC1"
Than, I have to save xdate & xcode at MySQL with :
NumRows = SQLEXEC(myConnection, "INSERT INTO mydata (date,code) WITH ('"+xdate+"','"+xcode+"')","cursor1")
But, the problem is sometime I can save that value to MySQL but sometime the value not save at MySQL. So is that something I have to do that I miss while using INSERT at SQLEXEC?
Because I think if I got wrong at SQLEXEC statement, it will not work from begining, right?
I also already try this program at 2 different computer, and the MySQL also install at localhost, but I still get the same problem.
Maybe someone could give reason for my problem. I use VFP 8
Thank you in advance.
NumRows = SQLEXEC(myConnection, "select mbarang.kdbrg,mbarang.namabrg,mjenis.namajenis,;