I mostly use PHP, and not familiar with javascript, so you'll have to excuse me if this seems like a simple question.
I'm looking to setup something so people can put something from my website on theirs. I know this can be done, because of things like website counters. What I need to put on the page is a couple images, a link and some dynamic & static text. This information is in a MySQL database. I'm not looking for anything like AJAX since nothing really has to be updated dynamically.
Javascript can not reach a DB. Javascript is a client-side language. The only think you can do is to use a server-side application to make a query in a MySQL DB. Probably written in php.
Bookmarks