printef
Posted: Tue Jul 10, 2012 11:03 am
Hi.
Is possible to include php file inside printf ?
Thank you for help.
How write this script correctly?
Is possible to include php file inside printf ?
Thank you for help.
Code: Select all
<?php $result = mysql_query("SELECT * FROM base WHERE id='$id' ",$db1);
}
if (mysql_num_rows($result) > 0) {
$myrow = mysql_fetch_array($result);
do {
printf("
<table>
<tr>
<td>
<p>%s</p>
</td>
<td>
<p><?php include ('phpfile.php');?></p>
</td>
</tr>
</table>",$myrow["text"]);
}
while ($myrow = mysql_fetch_array($result));
}
?> How write this script correctly?