What is PosClDate supposed to be? How do you create
the value you insert?
As you've set out the SQL, you're comparing strings, not dates.
This comparison MIGHT work if you compared yyyy/mm/dd type dates. But dd/mm/yy comparison will not work
(Also in any case you'd need to quote '$dte' : SELECT * FROM internal WHERE PosClDate < '$dte')
You are so hosed using the approach you've taken, I scarcely know where to start...
What version of MySQL are you using? If 4.1.1 or later, you might have a prayer.