Pagination with XML content

[ot][indent]btw: how do cut and paste your code keeping the colors? I have the colors in my code when it’s in dreamweaver but when I copy and paste it looses the colors.[/indent]

Use the [PHP] bbcode tags, rather than [CODE] – if you’re using the WYSIWYG editor click the icon.
[/ot]

And if you want to get crafty, you can use the highlight tag, which allows you to use php, javascript, html4strict, css, and a whole host of other coding types.

For example:

[highlight=“php”]
<?php
$name = filter_input(INPUT_POST, ‘name’);
?>
[/highlight]

looks like this:


<?php
$name = filter_input(INPUT_POST, 'name');
?>

and has slightly different formatting than:

[php]
<?php
$name = filter_input(INPUT_POST, ‘name’);
?>
[/php]

which looks like this:


<?php
$name = filter_input(INPUT_POST, 'name');
?>

Off Topic:

Why do I feel like I’m on StackOverflow? (:

For the print_r($objXML) quiestion
I am seeing my xml but what is the “1” at the end?

SimpleXMLElement Object
(
[messages] => SimpleXMLElement Object
(
[vdate] => 2010-05-28 00:22:21
[msgpost] => Hello World!
)

)
1

And the answer to the class_exists code is “Y”

Yes, my xml looks correct

Hmm…

The problem than has gone beyond speculation for me and the only way I could properly debug what is happening is through trial and error on your environment. I would recommend going through adding var dumps to see where the issue is occurring.

Although, there is one other thing I thought of. What page are you on? If your on page 2 and have a single message then seeing the no messages feedback is correct.

I’m on page 1
anyway thanks for the help