> I've got a problem where people are entering extra characters (due to an > inonsistency in the tracking numbers they are being given) in a number > they are entering in a form field. I have a PHP script querying a MySQL > database. What's the easiest way to take the input and use only the > first 8 characters? > > Any help is appreciated! > > Thanks, > Rory
$tracking = substr($input,0,8); Would be as easy as I can think of. * Chris O'Brien ([EMAIL PROTECTED]) * Excel.Net,Inc. - http://www.excel.net/ * (920) 452-0455 - Sheboygan/Plymouth area * (888) 489-9995 - Other areas, toll-free -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]