473,568 Members | 2,898 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XMLS,MySQL,PHP Generate & Store

Hi group,

I am working on retrieving/storing information in a MySQL database that
requires the rows of the db scheme to be expandable. As an example of
what I am trying to do:
You want to store info on a HOUSE

ROOMS are in a house
WINDOWS can be in a room or not
DOORS can be there that lead to other rooms
CARPET can be there
the carpet has a specific COLOR
end of ROOM details

PEOPLE live in the house
CLOTHES cover the people
end of PEOPLE details
end of HOUSE details
etc...

You can quickly see the relevancy of a good XML schema, and the logical
flow of the layout.

My problem is that everyone's house attributes are different. Some
folks have special PANELS that go in a ROOM, and some users don't want
to include PEOPLE in their house description.

I have been searching for a php, mysql, xmls style 'generator'(for lack
of proper term). I can piece togeather any code I need. So far I have
found a wonderful XML generator lib that will handle creating XMLS
which I can store in a simple DB 'text' row. But I am having a
difficult time 'piecing everything I need to do togeather'. I also
found a system that does everything I need, but it is written in Ruby:
http://codegeneration.net/tiki-read_...p?articleId=19

My current idea for handling a web based HOUSE storage/generator system
is:
-create a very basic skeleton for a house to use as a standard
template
-allow user to build the xmls that creates the house framework
*the form has to be flexible to allow for the xml scheme creation
-store the new XMLS in a db
-allow user to select the XMLS layout and begin adding/editing
content to the DB
*automatically update db based off form values
-allow export of any information in the DB to any XMLS in the db

Pointers in the right direction appreciated.

Kyndig

Jul 24 '05 #1
1 1773
On 2005-07-24, Kyndig <ky****@gmail.c om> wrote:
My problem is that everyone's house attributes are different. Some
folks have special PANELS that go in a ROOM, and some users don't want
to include PEOPLE in their house description.
Actually, in a normalized db design you would probably end up with
tables like:

houses, rooms, panels, peoples

and then add houserooms, housepeoples, etc to link them...

I have been searching for a php, mysql, xmls style 'generator'(for lack
of proper term). I can piece togeather any code I need. So far I have
found a wonderful XML generator lib that will handle creating XMLS
which I can store in a simple DB 'text' row. But I am having a
difficult time 'piecing everything I need to do togeather'.


As you are trying to save XML in a database, you would probably end up
with tables like:

nodes
attributes
nodeattributes
....

--
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be >
Jul 25 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
3358
by: AF | last post by:
I am a real novice to php and MySQL, with about a week's worth of reading and self tutoring. I have an urgent need to publish a database of information and need some guidance on how to do this. This question might be more suited to a MySQL newsgroup, but since php and MySQL seem to have become almost married to one another, and since...
6
10391
by: Lars Plessmann | last post by:
how can I generate a mysql timstamp value of the current time? sample: 20040605042505 YYYYMMDDhhmmss is it only possible by concat year.month.day.hours.minutes.seconds or is there any final function included in PHP to do that for me? I didn't find it, yet.
11
2172
by: Joshua Beall | last post by:
Hi All, I am working on a registration system, and one of the things I am going to need to be able to do it setup the database tables for each event that I have registration for. Normally I would do this by hand, but I am wondering if there are any code libraries out there that could generate the SQL for me. Basically I would have a...
0
1953
by: Donald Tyler | last post by:
Yes it can. But you should understand the three distinct levels of that situation. You need the following: Database Web Server Server-Side Scripting Language I would suggest using AMP (Apache, MySQL & PHP). If you want to know more
2
3656
by: Fan of P2P | last post by:
Hi, Does anyone know how I can store files (mostly pictures) into a mySQL table? I have tried the load_file function but it seems to not work. i just get NULL as the value. Any examples would be most appreciated. I am using RH9 and the latest version of mySQL. I know I should be storing the links on disk and the save a pointer in
3
8142
by: Steven Sinfield | last post by:
Hi All, I am trying to use PHP & MySQL over SSL, my issue is that the data that I am querying also needs to be available by non-secure as well. Can someone please help me in doing this. Cheers Steve
13
2292
by: Jim Hubbard | last post by:
I have a client that desires a new application for use at several stores in different cities. He wants "real time" access to all store data and the ability to continue to run locally even if the internet connection goes down. It occurs to me that a local MySQL instance should definitely be in each store to continue work if the net is down...
7
17887
by: mukeshpatil | last post by:
How to get data from .CSV file using php & store it into Mysql database I want to read data from two different .CSV files using php & How to store it into Mysql Database tables Please help me to do this.
0
1374
by: Nick | last post by:
Hi, I need to compare two xml files. Which contain multiple xml datas based on a key. So for eg. I have two xmls A.xml and B.xml. A.xml : <?xml version="1.0" encoding="UTF-8"?> <Test >
0
7693
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7962
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6275
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5498
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5217
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3631
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2101
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
932
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.