I wound up using a
Code:
$sql="INSERT INTO Persons (FirstName, LastName, Email, Address, City, State, Zipcode, Comment, Color, Color2, Subscribe)
VALUES
('$_POST[firstname]','$_POST[lastname]','$_POST[email]','$_POST[address]','$_POST[city]','$_POST[state]','$_POST[zipcode]','$_POST[comment]','$_POST[color]','$_POST[color2]','$_POST[subscribe]')";
sequence and it worked wonderfully. You were exactly right in that creating a database and connecting to it to create the output was much simpler than messing around with creating xml via DOMDocument functions. I later on managed to find an example of the DOM function I needed but I was already done (usually works that way doesn't it?). Thanks for your advice!

Originally Posted by
traq
MySQL's dev website is a great resource, but it's the most confusing thing in the world to try to read.
For this project, you probably wouldn't need more than SELECT, INSERT, and maybe UPDATE for your queries. The big part is designing your tables and indexes. Can you describe each piece of data that you're collecting, and how they relate to each other? e.g., which pieces are optional, which are sub-parts of the same info, which info might have more than one entry for the same person, which info must be unique? Which pieces of data will you be querying (searching) by?
Bookmarks