Query part of php sms code.