You are here: Help with Functions « PHP « IT news, forums, messages
Help with Functions

Posted by Tom Chubb on 07/30/05 19:23

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация