Click to See Complete Forum and Search --> : Linking to another server's database?


itheperson
10-01-2003, 02:24 PM
Hey, I would really like to start up a service where I offer a number of scripts which I would host on my server aswell as any database info. All the user needs is to link to the database using a snippet of javascript, but I'm not sure how this works.

Example:

<script type="text/javascript">LinktoComments('365')</script>
<noscript><a href="http://pro.enetation.co.uk/comments.php?user=user&commentid=365">Comment</a></noscript>

(this is off of a similar thing I want to set up, where users can sign up and have people comment on their sites whilst not requiring PHP, MySQL etc.)

I would be very grateful of any feedback on this!

Thanks.

Jona
10-01-2003, 05:03 PM
If you know how to manage data in MySQL through PHP, you can set up a table for users, and use the GET method to return the value of the username, search through the database, find any information you need, write to that user's "comments" box in the table, and send the page to the browser.

[J]ona

itheperson
10-02-2003, 02:04 AM
and how do i send the page to the browser?

Jona
10-02-2003, 01:56 PM
HTML or XHTML, depending on what you have as your DOCTYPE, since the result will be sent to the user on a Web page, it will be in markup format. Unless you are wanting them to download some sort of file.

[J]ona