Hi, i have php script which is outside web dir that deletes unconfirmed users from db when run via cron, could someone have quick look and check it is ok.

thanks

Code:
#!/usr/bin/php -q
<?php
  // cron job to delete inactive users older than 2 Days
  $db=mysql_connect('localhost','dbname','password');
  mysql_select_db('dbname',$db);
  $strSQL="DELETE FROM `PLD_USER` WHERE `EMAIL_CONFIRMED` = '0' AND `REGISTRATION_DATE` < (CURDATE() - INTERVAL 2 DAYS);"
?>