Yes I have been advised about it before, but as I’m on my own doing this project, have a tight deadline, and learning on the go, I will have to come back to it later.
Its an intranet project, so its not as vulnerable as it could be.
To be honest, I wish I had someone else here in the office a little bit more senior than me to advise on things like that, as I’m learning PHP & MSSQL from scratch on my own, and this forum and google have been my main forms of working through it.
please note that addslashes will NOT work with mssql, since mssql does not use the backslash character as an escape mechanism. just double your quotes instead. or use this:
On the same subject, I have an option to enter a contract value, at the moment i asked if they could simply put a row of numbers in (12500), but they now want to be able to put a comma in and a full stop (12,500.50), so to allow this does the following make sense:
Working out all that probably took more time than using prepared statements. And there are still lots of cases where one could knock MSSQL off its kilter here.