This is an excpert from a conversation I was having trying to figure out how to do this.... I hope you can understand what I'm needing but if not, ask me to explain.
Carebear 3.0 says:
$hpos = strpos('$partnum', '-');
$fsort = substr('$partnum', $hpos);
This is so that I can find a hyphen in string then strip the string down to just the number after the hyphen. The only problem is that I need to use this new variable to sort the results of a query. But the $partnum is a result of the query itself.
Carebear 3.0 says:
I'm going to have to use two queries aren't I
Carebear 3.0 says:
But there's even a problem doing that... I have to sort by the fields inside the table. The only way to actually sort would be to remove everything to the hyphen inside the table itself, a permenant thing.