Php Function Use Variable In Sql