You are here:  » Coding Help


Coding Help

Submitted by Barbabara on Tue, 2011-02-15 13:48 in

Hi,

The following code returns the first result only. What coding would i need to add to show all results?

{code saved}

Thanks
Barbara

Submitted by support on Tue, 2011-02-15 13:56

Hi Barbara,

It's just the

  return TRUE;

...in your myRecordHandler() function that's causing it to stop - that is how you can stop the parser if required, such as during development or debugging. Simply remove that line and your myRecordHandler function will be called for all records!

Cheers,
David
--
MagicParser.com

Submitted by Barbabara on Tue, 2011-02-15 14:45

Hi David,

Many thanks for your swift response, everything OK now.
One more question, how would i parse -

<image url="#" url-thumbnail="#" />

to obtain the thumbnail image.

Cheers,

Barbara

Submitted by support on Tue, 2011-02-15 14:58

Hi Barbara,

That should be in an instance of $record as

$record["IMAGE-URL-THUMBNAIL"]

Cheers,
David.