Re: [PHP] My first xml try

2007-11-10 Thread Andrew Ballard
On Nov 10, 2007 12:56 AM, Ronald Wiplinger [EMAIL PROTECTED] wrote: Andrew Ballard wrote: Ronald, On Nov 9, 2007 9:05 PM, Ronald Wiplinger [EMAIL PROTECTED] wrote: I tried to use echo statements for debugging and found that it seems I do not get the information of require(). What do I

[PHP] My first xml try

2007-11-09 Thread Ronald Wiplinger
I must use php 4 and mysql 4.x ! I tried an example I found on the net and modified it so that it should work with php4 and mysql 4. The code is below. I need to access a database and get an xml feed output. I tried to use echo statements for debugging and found that it seems I do not get the

Re: [PHP] My first xml try

2007-11-09 Thread Andrew Ballard
Ronald, On Nov 9, 2007 9:05 PM, Ronald Wiplinger [EMAIL PROTECTED] wrote: I tried to use echo statements for debugging and found that it seems I do not get the information of require(). What do I need to change? I'm not sure what error you're getting, but I would guess it can't find the

Re: [PHP] My first XML!

2002-11-27 Thread olinux
Here's a start for you ? /* Connect to database */ $sql = SELECT * FROM categories ORDER BY parent_id,cat_id ASC; $result = @mysql_query($sql) or die(Couldn't select categories.); $menu = array(); while ($row = mysql_fetch_array($result)) { $id = $row['cat_id']; $category =

[PHP] My first XML!

2002-11-26 Thread Boris Kolev
Hello php-general, Hi. I want to know how i can export tree structure from Mysql table to XML mysql table structure is: ID - Group Unique Id P_ID - Parent Id Name - Name of group I want to make XML whit tree structure. Can some body help me! -- Best regards, Boris