You are here: layout function « PHP Programming Language « IT news, forums, messages
layout function

Posted by frizzle on 10/02/05 23:03

Hi there,

i want to build a function to create layout parts.
It has to create tables.

What i want now is to have the following function:
function doTable($state, $width, $height);
{
echo ($state === 1)? '<table width="'.$width.'"
height="'.$height.'"><tr><td>' : '</td></tr></table>'

};
(extremely simlified)

And call it this way:

doTable(1, 350, 400);

echo 'table content';

doTable(0);

Can/How do i handle the 'missing variables' in the second 'doTable()'?

Thanks in advance!

Greetings Frizzle.

 

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

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