"include" working....but confusion
| From: | Ryan A | Date: | Tue, 20 Jan 2004 18:11:03 +0000 |
| Subject: | "include" working....but confusion | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-175166@lists.php.net to get a copy of this message | ||
Hi,
A bit confused here... this is my programs logic:
if(multipleProducts==1)
{include "multiple_products_looping_code.php";}
else {include "single_products_code.php";}
I am doing the above because some of the code is pretty big and it makes
life simlier
if I just add the code when I need it.
Only problem is: when i include the code for multiple products...its
outputting the raw code from there....!!
Do I have to start and end the included files with <?php ?> ?
Thanks,
-Ryan