17.09.2011, 18:10
PHP Code:
<?php
function f1() {
....Something here
}
function f2() {
... and something here
}
if( $_GET['func'] == 1 )
{
function f1();
}
else if( $_GET['func'] == 2 )
{
function f2();
}
?>
If you called samp.php?func=1 the first function would be called etc.
Quote:
This forum requires that you wait 120 seconds between posts. |