Preventing SQL Injection

Changed PHP code to prevent injections