1

I am using WAMP.

Php version : 5.5.12
mysql : 5.6
apache :5.6.7d

I am trying to use mysql_connect for connection with database. And getting error to use mysqli or pdo. Is it due to latest version or something wrong in code or do some setting changes in WAMP?

enter image description here

DRUPWAY
  • 345
  • 6
  • 16
  • 2
    Wamserver's default MySQL test file is `mysql_` based code. You need to change all that to `mysqli_` or PDO. Consider this as an "answer". You can delete your question now. – Funk Forty Niner Nov 28 '14 at 15:31
  • @Fred-ii- Thanks for quick reply. Can you suggest how/where need to change it? – DRUPWAY Nov 28 '14 at 15:33
  • http://php.net/manual/en/book.mysqli.php – Daniel Stanley Nov 28 '14 at 15:34
  • You're welcome. Check out http://php.net/manual/en/function.mysqli-connect.php there are a few examles in there. Wampserver should update their installation with an `mysqli_` and PDO example. Remember, DB connection needs to be passed for all `mysqli_` functions, unlike `mysql_`. – Funk Forty Niner Nov 28 '14 at 15:38

0 Answers0