This is probably a stupid question, but i'll ask it anyways,
Through mysql_connect you need to do all sorts of stuff to prevent database injection etc magic quotes ...etc
Anywho, do we have to take some kind of provisions for PDO as well if we will be using quires with unnamed placeholders "INSERT INTO folks (name, addr, city) values (?, ?, ?)
or INSERT INTO folks (name, addr, city) value name, :addr, :city)
Or do we just grab the the POST or GET data and relay it directly in to the query values.
Through mysql_connect you need to do all sorts of stuff to prevent database injection etc magic quotes ...etc
Anywho, do we have to take some kind of provisions for PDO as well if we will be using quires with unnamed placeholders "INSERT INTO folks (name, addr, city) values (?, ?, ?)
or INSERT INTO folks (name, addr, city) value name, :addr, :city)
Or do we just grab the the POST or GET data and relay it directly in to the query values.
Last edited: