[Phpwm] nuSoap question

Phil Beynon phil at infolinkelectronics.co.uk
Thu Oct 5 12:51:28 BST 2006


> Ah, so what’s the difference between the two while loop
> statements (sorry, I
> am a newbie..:) ).  And what would be a better SQL statement to
> display all
> the records?
>
> Thanks,
>
> Ray
Ray,
One is echoing (i.e. printing the data back onto the screen) whereas the
other one, since it is a function being called, is trying to return the data
back to whatever bit of code called / invoked it.
There's really no need to use a function call to do a database query like
that, just include it in the normal flow of the code you are writing.

If you are pretty new to PHP then it might be better to try and learn, via
hand coding, the structure, syntax and flow of the code prior to using tools
like Soap, otherwise when you get a problem like this its had to spot where
it went wrong since you dont know if its your code or Soap thats giving the
problem.

There's nothing wrong with the sql, though if you will at some stage be
looking at a large amount of data the page of results will get pretty long!
:-) Then you will get to look at and enjoy playing with the LIMIT statement
in MySQL and add "next 10" "last 10" type buttons on your page!

Regards,

Phil




More information about the Phpwm mailing list