![]() |
XML data files... anyone know how to...
does anyone know XML and how to create flat xml data files. where all the search data is in a .xml file on the system. I want to create a product database of about 40-60 items that will be called up via a drop-down box.
|
not sure what you mean. xml is a markup language, you can layout structure however you want, but i wouldn't use it for storing data.
Code:
<xml>this is as flat as it goes</xml> |
hey you got a nice site in your sig manno! :pimp
do you mind if I ask you what script you are using for it? |
Quote:
|
holograph: i wanted to do something like this in a products.xml
<prodname>Ipods</prodname> <desc>20gig ipod</desc> <url>http://www.url.com</url> <prodname>PSP</prodname> <desc>Sony PSP</desc> <url>http://www.urlpsp.com</url> then i want to use a FORM with a drop down box [ prodnames ] and when the user selects from the drop down box it the url for the product will load on the main page. graphicspimp: i'm using k-rate http://www.turn-k.net/ its a pretty good script but the creator just disappeared back in april. i got a coder that pretty much helped me tweak the script a lot adding features and removing stuff. its a good script to mess with though. |
by the way, the reason why i wanted to use a .xml is cause i'm only going to have like 40 or so products and i'm trying to cut back on the mysql connections when its not really needed
|
bump for the morning crew... anyone know xml and have an example
|
You CAN write code to build the xml file based on the DB data and use the built-in PHP XML parser to create the drop down from the xml file, though I can't imagine why you'd want to...
Are you looking for free code here or what? |
Creating XML files JUST so you can cut down on mysql connections is pointless. Unless you know what you are doing, you will probably make things worse. icq: 33375924 if you want to discuss other possible solutions to your mysql connection problem.
|
| All times are GMT -7. The time now is 10:06 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123