Inserting php code within php code
Posted: Wed Jul 19, 2006 4:24 pm
I am getting a parse error from the code snippet below:
Specifically, in <?php echo($job_row['updatepostdate'])?>
What would be the correct way to insert php inside of php?[/b]
Code: Select all
<?php
if ($job_row['updatepostdate'] != NULL)
{
print "<td class="tdForm"><?php echo($job_row['updatepostdate'])?></td>";
}
else
{
print "<td class="tdForm"><?php echo($job_row['posted'])?></td>";
}
?>What would be the correct way to insert php inside of php?[/b]