GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   XML data files... anyone know how to... (https://gfy.com/showthread.php?t=543922)

acctman 11-23-2005 10:35 PM

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.

Serge Litehead 11-23-2005 10:39 PM

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>

graphicspimp 11-23-2005 10:55 PM

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?

Linguist 11-23-2005 10:59 PM

Quote:

Originally Posted by acctman
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.

It's easier to do with a mysql database

acctman 11-24-2005 01:07 AM

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.

acctman 11-24-2005 01:10 AM

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

acctman 11-24-2005 05:37 AM

bump for the morning crew... anyone know xml and have an example

broke 11-24-2005 07:29 AM

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?

woj 11-24-2005 09:38 AM

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