Help with Functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am trying to start using functions on some pages to layout a header
row in a table.
I have defined the function as below...

<?php 
function (headerrow)
{ ?>
	<table width="750" border="0" cellpadding="0" cellspacing="0"
bgcolor="#FF0066">
        <tr> 
          <td class="table_head"><?php echo $tablehead; ?></td>
          <td width="20"><img src="/nav/images/pspromo_table_rhs.gif"
width="20" height="20"></td>
        </tr>
	</table>
<?php 
}
?>


What I can't seem to work out is a way to set the text. Here I've
echoed the $tablehead value, but it I was to use more than one table
on the same page then it wouldn't work. Can I do something like
headerrow(text goes here) or something?
I can't understand the use of arguments and it's really confusing me!
Any help would be really appreciated.
Thanks,

Tom

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux