473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

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 1762
On 2005-07-24, Kyndig <ky****@gmail.com> 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
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. ...
6
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...
11
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...
0
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...
2
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...
3
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. ...
13
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...
7
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...
0
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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,...
0
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...

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.