maverickalex wrote:SUCCESS! well partial.
thissuccessfully sends to the database, However all that appears in the database are zero's that are sent??Code: Select all
put "INSERT INTO phpvms_test (aircraft,flightnum,depicao,arricao,flighttime,fuelused,comments) VALUES ("& 'tAircraft' & "," & 'tFlightnum' & "," & 'tDepicao' & "," & 'tArricao' & "," & 'tflighttime' & "," & 'tfuelused' & "," & 'tComments' &")" into tSQL
Non, non, non. It can't work.
Let's recap :
-you want to insert strings
--> you need to use single quotes
-but your strings are variables
-->therefore you have to use the single quotes not attached to your variables names, but before and after double quotes !
Code: Select all
"& 'tAircraft' & "

So here is the query.
Code: Select all
put "INSERT INTO phpvms_test (aircraft,flightnum,depicao,arricao,flighttime,fuelused,comments) VALUES ('"&tAircraft&"','" &tFlightnum&"','" &tDepicao&"','"& tArricao&"','"&tflighttime&"','"&tfuelused&"','"&tComments&"')" into tSQL
It will help you to spot the problem, much more easily.
Other trick : when you strugle with a long UPDATE or INSERT query with many columns, first try a "short" version with only 1 or 2 columns. It will help you to "tune" your query, and to be sure it behaves correctly.
Anyway. You're almost done... But then I think you should peruse websites about MySQL. There are plenty, with very good tutorials.