-
Using the Javascript with a connection from the database.
Hey im looking to create a javascript table:
Basically, i want it to echo the contents of the MYSQL table.
How could i do this with JAVASCRIPT. Not HTML.
-
-
You can't do this with JavaScript. A server side language is needed, such as PHP or ASP. (JavaScript is client-side: executed after the page loads).
With PHP you simply have to connect to the database (using username, password, and domain) and then echo db contents, then close the database. Simple.
- Mike
-
-
Ok then, so i have created my PHP script to connect to the database.
So how do i make the javascript fetch information from the database?
-
-
Populate the javascript with data when the php parses the page, or look into AJAX to call PHP dynamically
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks