0

A sudden error appeared on my screen saying "No database Selected". I read out all the solutions to solve it but did not find any solution helpful as i have tried all those solutions. I have been working with the same connection.php file many times in previous projects. Also, i have checked that all privileges are ok. Kindly Help me !

db_connection.php

<?php
$link = mysqli_connect("localhost", "root", "", "m");
?>

data.php

<?php
include './includes/db_connection.php';

$check = "SELECT name FROM web_marketing";
$sth1 = mysql_query($check);
print_r($sth1);
 die($check."<br/><br/>".mysql_error());
?>

0 Answers0