php - What is PDO , how it's related with sql injection & why i should use this? -
Actually I did Google and got so many results, but I do not understand, 'I'm new in this field Am So any 1 can tell me in simple ways that what is PDO, why should I use it, what is SQL injection with example. Actually now my code is so that someone can help me ??? config.php & lt ;? Php $ mysql_hostname = "localhost"; $ Mysql_user = "root"; $ Mysql_password = ""; $ Mysql_database = "testdb"; $ Prefix = ""; $ Bd = mysql_connect ($ mysql_hostname, $ mysql_user, $ mysql_password) or die ("Could not connect to database"); Mysql_select_db ($ mysql_database, $ bd) or die ("database could not be selected"); ? & Gt; insert.php & lt ;? Include php ('config.php'); $ Account_no = $ _ post ['account_no']; $ Amount = $ _ post ['amount']; $ Save = mysql_query ("Include table mirror (account_no, volume) values ('$ account_no', '$ amount',")); Hea...