TrackingID - Changing from Random to Sequential
Posted: Thu May 10, 2007 10:43 am
Script URL: (in testing phase - haven't uploaded site yet)
Version of script: 0.94
Hosting company: (in testing phase - haven't uploaded site yet)
URL of phpinfo.php: (in testing phase - haven't uploaded site yet)
URL of session_test.php: (in testing phase - haven't uploaded site yet)
What terms did you try when SEARCHING for a solution: sequential, trackingID
Write your message below:
Hi there,
I would like to change the Ticket ID's from random to sequential (starting at # 1). I'm assuming the following script would need to be changed but I'm not quite show in which way:
&useChars='AEUYBDGHJLMNPQRSTVWXZ123456789';
&trackingID = $useChars{mt_rand{0,29} };
for {$i=1;$1<10;$i++}
{
$trackingID .= $useChars{mt_rand{0,29} };
}
$trackingURL=$hesk_settings{'hesk_url'].'/ticket.php=' .$trackingID;
Any advice would be greatly appreciated.
Cheers,
Matt
Version of script: 0.94
Hosting company: (in testing phase - haven't uploaded site yet)
URL of phpinfo.php: (in testing phase - haven't uploaded site yet)
URL of session_test.php: (in testing phase - haven't uploaded site yet)
What terms did you try when SEARCHING for a solution: sequential, trackingID
Write your message below:
Hi there,
I would like to change the Ticket ID's from random to sequential (starting at # 1). I'm assuming the following script would need to be changed but I'm not quite show in which way:
&useChars='AEUYBDGHJLMNPQRSTVWXZ123456789';
&trackingID = $useChars{mt_rand{0,29} };
for {$i=1;$1<10;$i++}
{
$trackingID .= $useChars{mt_rand{0,29} };
}
$trackingURL=$hesk_settings{'hesk_url'].'/ticket.php=' .$trackingID;
Any advice would be greatly appreciated.
Cheers,
Matt