
March 2nd, 2000, 10:11 AM
|
|
Junior Member
|
|
Join Date: Mar 2000
Location: Grantham,Lincs, UK
Posts: 7
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
I think that I know what you are asking, I am a little new to it though.
I have done something like this recently:
function Show($ID)
{
$this->query("SELECT * FROM mytable WHERE ID = "$ID"");
then:
while ($this->next_record())
{
$Result .= $this->f("Field") . "<br>n";
$Result .= $this->f("Field2") . "<br>n";
}
return $Result;
As you may see I have built the HTML in the function as opposed to passing the data back in an array to the page and build it there. This is so if the show() is on many pages you can control the display method globally.
mmm...does this make sense??
|