Web Development Blog

mysql_query deprecated as of PHP 5.5.0

New connection string
$link2 = mysqli_connect("localhost", "username", "password", "db_name");
 
New code
$sSQL="SELECT * FROM Table";
$result=mysqli_query($link2,$sSQL);
if ($row=mysqli_fetch_assoc($result))
{
$msg=$row["adminUsername"];
}
 
Here is the link to the new function: http://www.php.net/manual/en/mysqli.query.php

Associated tags:  PHP, Web Developemnt, Mysqli_query, Mysqli_connect

Add Comment:

CAPTCHA