15,890,882 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by The Myth (Top 1 by date)
The Myth
14-Sep-13 8:54am
View
It's been awhile since I did any mysql coding. A few questions to narrow things down:
- I assume the select statement works? So you know your connection string is working?
- I see two inserts. Do you know which SQL insert is not working? Do you know the actual SQL string or variables it is trying to insert? That way you can test them against the database directly to verify they work without the PHP code.
- Did you verify through the firefox's web console that there is no javascript errors or through HTTPWatch to see the ajax response that you are getting back from the server? Once you know this, you can test this directly outside of the page itself.
Once you can narrow down which piece is having the issue, it will be a lot easier to solve. I noticed you're using a lot of onclick, onfocus, onmousedown events in html, you should try to avoid these and have all that logic in the javascript by using jquery's onclick events instead. Also you're using XMLHttpRequest directly which probably isn't cross-browser compatible. Again, I would use JQuery for this logic. Have you tried this in multiple browsers? It might work in some and not others if the issue is ajax related.