How do I get data from MYSQL key/value pairs into a javascript object. I use php, javascript and HTML5.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you are not using another programing languages beside JS and MYSQL, and you need an internal language to communicate them.
Javascript is a client language and SQL is a server language, so you need another programming language to connect them (like PHP, RoR, Java, etc…) for security reason, can you imagine what could happen if in your computer is the login and password of the DB of any bank?
If you want to learn some other PHP you can take a look here: http://www.youtube.com/playlist?list=PLD1E8E67698E6A612 or http://php.net/manual/en/tutorial.php
Or RoR, you can go to railscast.com.