Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

How to pass Query to MYSQL Database from Javascript

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

How to pass Query to MYSQL Database from Javascript

Postby stephenrodrics » Fri Apr 05, 2013 6:40 am

I have implemented a feature where based on the Username selected, data should be retrieved from MYSQL database.

My question is how can i send Selected Username to my PHP class where all database operations are done from JAVASCRIPT function.

I have implemented OnClick function in javascript where i have the selected item name just i need some mechanism to pass that name to PHP where all database operations are done.

Can anyone tell how to do this
stephenrodrics
New php-forum User
New php-forum User
 
Posts: 58
Joined: Thu Mar 14, 2013 6:10 am

Re: How to pass Query to MYSQL Database from Javascript

Postby seandisanti » Fri Apr 05, 2013 8:35 am

Please don't post multiple threads for the same issue, especially in the same forum.
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP coding => General

Who is online

Users browsing this forum: landi and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.