I am sure you already got this, but here is an example of what sassermann was referring to:
mysql databasename -e "delete from stime where unixti<=unix_timestamp('$daily')"
I have used that format for running MySQL commands before and it works well, though you will of course want to verify that the variables are being passed as expected, and of course that they are formatted correctly.