Jump to content

bielikMM

New Members
  • Posts

    3
  • Joined

  • Last visited

bielikMM's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Tthanks guys am getting to figure out using PDO and MYSQLI.....perhaps you could help me with this string of code. how will the new string look like ? <?php $host="127.0.0.1"; // Host name $username="root"; // mysql username $password=""; // mysql password $db_name="marketapp"; // Database name // Connect to server and select databse. $con=mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("marketapp",$con ) or die(mysql_error()); ?>
  2. Hi Am getting this error in my php code Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in C:\wamp\www\matu\connect.php on line 9 the line is $con=mysql_connect("$host", "$username", "$password")or die("cannot connect");
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.