![]() |
XML to MySQL
I'm looking for help or sample code that I can use to change an XML page to data to be uploaded to a MySQL server. Anything will help.
I forgot to add: in php, and i already have a working server. I already know a good amount of php. |
php, c++, asp, vb, ... what language do you want it in?
|
I would definitely recommend using PHP to interface with MySQL. They actually integrate quite nicely. If you own the web server but don't have PHP installed, there are no worries... it's free and even runs on Windows! to connect to a MySQL database and retrieve information from it (I guess it's a little more confusing than I thought for someone just starting out), all you have to do is something like:
PHP Code:
|
PHP Code:
Call dbcon(); then dbquery('SQL QUERY'); I also have an additional config file to insert the variables, but I don't think you want my password.:rolleyes: |
i know if i didn't know php that well those code snippets would confuse the crap out of me haha...
the second one is a little easier to grasp...look around on a lot of open source sites (pscode.com, sourceforge.net even...) they can provide step by step tutorials on this subject. *jeremy |
my assumption was that he knew PHP already. sorry.
go here: http://www.webmasterbase.com/article/528 for an explanation of using PHP/MySQL. You might want to read the rest of the tutorial... but this is what i found truly pertinent. If you don't already, try getting PHP My Admin ( http://www.phpmyadmin.net/ ) and, i'm not sure what you are asking. People have provided examples of PHP generating say, HTML from MySQL, but if you are trying to take XML and parse it, it really depends on what you are trying to do... |
www.w3schools.com
They provide anything you'd wanna know about learning XML. (and other w3.org stuff) |
I know a lot of php. What I am trying to do is take data from a XML page, and insert it into a MySQL db. I am also hoping to do this useing php.
|
what kind of data?
can i see the XML page? |
Quote:
Check out the two links at the very bottom of this page: http://www.chiefdelphi.com/forums/mi...?s=&action=xml One is an example on how to parse the XML that runs the 'last 10 threads on my page' thing from chiefdelphi. The other is the manual page for parsing XML with php. Hope that helps a bit. |
| All times are GMT -5. The time now is 02:02. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi