Question about print_output
Posted: Mon Jul 08, 2002 9:01 pm
I hope this is a simple question. I was using a php script someone had written and posted in the docs on how to replace code (can be found here: http://www.phpbuilder.com/columns/ying20000718.php3)
I am pulling the information from a MySQL database. On one page it works great, because I am pulling a single record and using the command like:
However, in another section, I am pulling multiply rows by using the fetch command. Below is the code:
However, I do not know how call upon my print_output command. I'm fairly new at this, so thanks in advance.
Richard
I am pulling the information from a MySQL database. On one page it works great, because I am pulling a single record and using the command like:
Code: Select all
<?php print_output($myrow2ї"subject"]) ?>However, in another section, I am pulling multiply rows by using the fetch command. Below is the code:
Code: Select all
($myrow2 = mysql_fetch_array($result2)) {
printf("
<fieldset>
<legend class='fieldset'>%s</legend>
%s</fieldset>
<p>\n"
, $myrow2ї"subject"], $myrow2ї"message"]
);
}?>Richard