Jump to content

how to conect to datatbase through XML?

- - - - -

  • Please log in to reply
4 replies to this topic

#1
Nokia N93

Nokia N93

    Newbie

  • Members
  • Pip
  • 5 posts

i have an image gallery which has XML file that stores static names for the images
i want to modify the XML file, so that i can connect to the DATABSE and bring the images from there dynamically

how can i do that please ?
I would be much appreciate someone can help on this problem.

:c-^_^:


#2
wim DC

wim DC

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,084 posts
  • Programming Language:Java, JavaScript, PL/SQL
  • Learning:Java
XML itself won't connect to anything. It doesn't do anything but contain data.
We need more info about what the image gallery is made of. Is it an offline application, if so which language is it written in?.
If it's a website. Does it have a server side language (which one)?
And finally we need to know what kind of database it is, to give some accurate info.

#3
Nokia N93

Nokia N93

    Newbie

  • Members
  • Pip
  • 5 posts

oxano said:

XML itself won't connect to anything. It doesn't do anything but contain data.
We need more info about what the image gallery is made of. Is it an offline application, if so which language is it written in?.
If it's a website. Does it have a server side language (which one)?
And finally we need to know what kind of database it is, to give some accurate info.

I have static names of photo's in the XML,, i want to make it dynamic, so that the administator can add the photos to the website
I have a MysqL datatbse ,, i used the regular connect but it didn't work with me
what else mmmmmmmmmmm
I'm using PHP language as a programming language

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
Why not just store the photos in the database, and use the database to get the list of photos?
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
LuthfiHakim

LuthfiHakim

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 763 posts
You can use php to connect to your database on regular period (use cron-job) and update your xml file. OR, when administrators update/add the photos make them to also update the xml.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users