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/