Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Javascript and PHP

Status
Not open for further replies.

MacAttack625

Programmer
Jun 26, 2008
1
US
So Im trying to write some front end code in JavaScript, but I want to query a MySQL database in PHP to generate a table to display.

What is the best / easiest way to do this?

 
You've answered your own question. You would use PHP to query the MySQL database, and you would write your front-end code in HTML/JS (possibly with some PHP loops).

If you need to know how to do these, you'd need to ask a specific question in the relevant forums (i.e. PHP questions wouldn't come here).

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Check out
This is a PHP Library Class which combined with JS can do wonderful things ... Very easy to use and deploy ...

Sample code and tutorials available.

Good luck!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top