I have a PHP function:
function TicketsDisplay($status, $company = '', $contact = '', $show_status_name = 'no', $StatusColour = '000000', $StatusHeaderFontColour = '#FFFFFF', $FontColour = '#000000' ) {
...
}
that i run here:
<?php TicketsDisplay('Customer Reply',$_GET["seq"]); ?>
i want to add
$order = 'datetime DESC';
as a parameter on the function but how can i make sure when i add to the end it doesn't show errors because the other parameters are blank
UPDATE:
If my function looks like:
function TicketsDisplay($status, $company = '', $contact = '', $show_status_name = 'no', $StatusColour = '000000', $StatusHeaderFontColour = '#FFFFFF', $FontColour = '#000000', $order = 'datetime DESC' ) {
...
}
and i call my function like:
<?php TicketsDisplay('Customer Reply',$_GET["seq"],'sequence ASC'); ?>
surely it is going to think that the end parameter is $contact
?