I started to use PHP from the beginning and I stay with it.
And hopefully you use parameterized queries with PHP (it has support for them), since they work just like they work in JDBC. Please note that technically,
@LucaMs' assertion that given a parameterized SQL statement such as
SELECT * FROM Customer WHERE ID = ?;
an supplying it with the parameter of
would produce
SELECT * FROM Customer WHERE ID = 1; DROP TABLE Customer
is wrong. The argument I made in post #24 above, even though I directly mention JDBC, applies to parameterized queries in general, no matter the platform. So be it Java, PHP, B4X, Kotlin, Ruby, Perl, Python, etc., parameterized queries would never create the above SQL. Again, that is the whole point of using parameterized queries. The one area that JDBC may be different from other implementations (it's been to long since I used PHP/Perl) is that is does block multi statement queries. So if you wanted to actually execute
SELECT * FROM Customer WHERE ID = 1; DROP TABLE Customer
using JDBC, JDBC would produce an exception.