It returns this Error message: Access denied for user 'theNewLogonID'@'myName.myUniversity.edu' (using password: YES)
I don't have the same phpMyAdmin tools as in the University server so I can't check the db permissions the way I am used to.
This is the essence of the code (with changes to the names):
Code: Select all
global dbresult, dbID, dbSQL, sqlResult
Answer "Connected to the Internet and ready to submit?" with "Yes" or "No"
if it ="Yes" then
put revOpenDatabase("MySQL", "MyAccount.on-rev.com","LearningDemo","theNewLogonID","theNewPassword") into dbresult
put dbresult
answer dbresult
if dbresult is a number then
put dbresult into dbID
else
answer dbResult
end if
put "INSERT INTO Flying VALUES ('" & field "SubmitDate" & "'," into dbSQL
put "'" & field "SubmitTime" & "'," after dbSQL
put "'" & field "FirstName" & "'," after dbSQL
put "'" & field "LastName" & "'," after dbSQL
put "'" & field "TotalTime" & "')" after dbSQL
if last char of dbSQL = ";" then delete last char of dbSQL
revExecuteSQL dbID, dbSQL
put the result into sqlResult
if sqlResult is a number then
answer "Submission OK: " & sqlResult & " record(s) altered." with "OK"
else
answer sqlResult with "OK"
end if
end if
Does anyone recognize the source of the error?
This is a scripting format that I found and modified a while back, so if there is a better way to do this I'm open to it.
Thanks,