Olympus Posted January 8, 2015 Share Posted January 8, 2015 I am working on a project at the end of a text book called Beginning PHP MySQL Development which is published by Pawprints Learning Technologies. I am developing the files in NetBeans and using WAMP server. I get this error from the process_insert.php file "Deprecated: MySQL_real_escape_string():..." I can't copy and paste so I attached my files. Can anyone help? Add Product_php.htm index.php add_product.php process_insert.php db.connect.php Quote Link to comment Share on other sites More sharing options...
CroNiX Posted January 8, 2015 Share Posted January 8, 2015 Most likely you are using the mysql extension, and are using PHP >= 5.3. PHP has deprecated the mysql driver, which means it's going to be totally removed from PHP in an upcoming version. You should be using the PDO (1st choice) or MYSQLi extension and forget that the original MYSQL extension exists if you want to better future proof your code. See the PHP notes: http://php.net/manual/en/migration55.deprecated.php More here: http://php.net/manual/en/intro.mysql.php Quote Link to comment Share on other sites More sharing options...
ginerjm Posted January 8, 2015 Share Posted January 8, 2015 He's using mysqli but slipped in a MySQL_read_escape_string function. Plus he has a bad query. See other forum site. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.