function
Posted: Fri Dec 29, 2006 5:49 am
how have I donw wrong???
so I received this message "Fatal error: Call to undefined function top_title() in D:\htdocs\BP\temp\function_temp.php on line 4"
function.php
funtion_temp.php
so I received this message "Fatal error: Call to undefined function top_title() in D:\htdocs\BP\temp\function_temp.php on line 4"
function.php
Code: Select all
<?php
function top_title() {
echo '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
echo '<tr>';
echo '<td height="26" align="left" valign="top"> </td>';
echo '</tr>';
echo '<tr>';
echo '<td width="168" align="left" valign="top"> ';
echo '</td>';
echo '<td align="left" valign="top"><table width="573" border="0" cellspacing="0" cellpadding="0">';
echo '<tr>';
echo '<td height="26" align="left" valign="top"> </td>';
echo '</tr>';
echo '<tr>';
echo '<td align="center" valign="middle" bgcolor="#B97429" style="font-size:10px; color:#FFF;"> </td>';
echo '</tr>';
echo '<tr>';
echo '<td align="left" valign="top"> </td>';
echo '</tr>';
echo '<tr>';
echo '<td align="left" valign="top" style="text-align:justify;">';
}
function bottom_title() {
echo '</td>';
echo '</tr>';
echo '<tr>';
echo '<td align="left" valign="top">';
echo '</td>';
echo '</tr>';
echo '</table></td>';
echo '</tr>';
echo '</table>';
}
?>Code: Select all
<?php
include ("header_page.php");
include ("menu_index.php");
top_title();
include ("../autorizace/registrace_display.php");
bottom_title();
?>