sql injection php prevention code example Example: sql injection attack prevention in php SELECT UserId, Name, Password FROM Users WHERE UserId = 105 or 1=1;