Talk About Network

Google





Software > Macromedia Dreamweaver > Re: XML problem...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 98328 of 99640
Post > Topic >>

Re: XML problem/error

by David Powers <david@[EMAIL PROTECTED] > Nov 17, 2008 at 11:09 PM

SyKeSnr1 wrote:
>  My output however is all messed up. For instance the output still shows
the 
> Cdata tag: 
> 
>  <naam><![CDATA[Name of the product]]></naam> 

That's correct.

>  And like the first 100 rows return empty: 

What happens when you run the same query in phpMyAdmin? Perhaps the 
first 100 rows don't contain those values.

BTW, the following is very inefficient:

for($x = 0 ; $x < mysql_num_rows($resultID) ; $x++){

It calculates mysql_num_rows() every time the loop runs. It's more 
efficient to do this:

while ($row = mysql_fetch_assoc($resultID)) {
   // build the XML
}

-- 
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/
 




 2 Posts in Topic:
XML problem/error
"SyKeSnr1" <  2008-11-17 21:17:12 
Re: XML problem/error
David Powers <david@[E  2008-11-17 23:09:47 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 17:49:50 PST 2009.