PHP ERROR: include(file.php) twice, but its function cant be declared twice?

BEnno

New member
Hi I have a php file that runs a function to display sql data

Anyhow on my index.php i need to include(functionfile.php) two and even multiple time.

But of course when i run the index.php ......

<p>Category 1</p>
<? php $cat= '1'; include(functionfile.php) ?>
<p>Category 2</p>
<? php $cat= '2'; include(functionfile.php) ?>
<p>Category 3</p>
<? php $cat= '3'; include(functionfile.php) ?>


So now i get error cannot redeclare function grrrr

Any ideas on a work around???
 
Back
Top