NitishSinha Posted October 2, 2015 Share Posted October 2, 2015 Facing this error during creation of a registration form and linking to data base. kindly help ........ Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\wamp\www\test\registration.php on line 41 present php version 5.5 code entered mysql_connect("localhost","users",""); mysql_select_db("users_db"); Thanks in advance ?????? Quote Link to comment Share on other sites More sharing options...
Ch0cu3r Posted October 2, 2015 Share Posted October 2, 2015 That code you posted is connecting to mysql just fine. The error is warning you the the mysql extension (or in other words the mysql_*() functions) are deprecated meaning they are no longer supported and are being removed (on release of PHP7) To use mysql with PHP you need to use either MySQL Improved (mysqli) or PDO (pdo_mysql extension). 1 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.