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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retreive data from another database/website

Status
Not open for further replies.

opiatereceptor

Technical User
Sep 23, 2005
4
CA
Hi Everyone,
I'm a bit of a newbie here, but i'll explain what i want to do.

I have a website where i want to display a "top 10" list.
Sounds easy enough, but I want this list to be dynamic... it will talk to a different server to pull out what info I want.

For example, if i want to display "top ten movies", then I would like to just put a variable into my site (ie. $movies). The actual top 10 movie list will be saved on another server's database. [this is where i need help - what kinda code do i put on the 'other' server to look at my site, check out my variable, and then display the content accordingly?] Now, if i want to display "top ten plays", all i would have to do is change $movies to $plays, and then i have a complete new list - just by changing one variable.

I hope this can be done. And thanks in advance!!!!!
 
What server-side scripting language are you using? Javascript is generally used for client-side scripting, and what you want to do would be best with something on the server side.

Lee
 
There is php/mysql on the "server" (where i want to pull the data from).

I don't have php enabled on my website (the one that i want to display the top 10 list) because its just some free "space" that my ISP provides for personal websites.

I was hoping i could do it in javascript somehow.

Also, my friend who runs the php/mysql server is scared that if I put the wrong "php code" in my site, it may do some damage to his site... lol....

Can this be done via javascript? kind of like the antivirus feed that antivirus companies offer (where I would put in some javascript and it shows all the new virus's, up-to-date). Thanks again!
 
Did you want someone here to write the programming for you, or do you have something already that you need help with?

Lee
 
I just need a kickstart...

First of all, can it be done with javascript?

Second, i don't need someone to write the code for me.. just lead me in the proper direction. IE. what functions, are there similar examples.... that kind of thing.

Once i have "a leg to stand on", then i should be able to figure it out... hopefully ;)
 
It can be done with javascript. Google the term AJAX for start on that.

Tracy Dryden

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard. [dragon]
 
Thanks everyone for all your help!
I think i'll be doing research on AJAX.. thanks again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top