Reply to Control structures

Your name:

Reply:


Posted by pgt on 11/05/07 21:42

I need to cease the execution of some code if a couple of conditions are not
met.

exit; destroys the rest of my page of course, so I *think* I need some sort
of "wrapper", perhaps in a control structure?

The page works flawlessly otherwise (and reporting is set to
error_reporting(E_ALL); )


<body>
<div>
<?php
if (error checking here)
{echo 'error message';}
elseif (secondary error checking here)
{echo 'more error messages';}
// exit; <!--destroys rest of the page, so can't use-->
?>

<CONTAINER>
<?php
// other stuff
?>
</CONTAINER>

<!-- other html -->
</div>
</body>


I need to NOT execute anything within 'CONTAINER' when the if/elseif
statements are not met, but I DO need to continue with the html above the
closing div, so the rest of the page displays normally.

How to "wrap" this? Or ... ?

[Back to original 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

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