Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $host='127.0.0.1';
- $user='root';
- $pass='1234';
- $db='practice';
- if($link= mysqli_connect($host,$user,$pass,$db))
- {
- echo "connected successfully";
- }
- ?>
- <?php
- include('db_connection.php');
- $table="studentinfo";
- $query =" SELECT 'name' from $table ";
- $result=mysqli_query($link,$query);
- if(false===$result)
- {
- printf("error: %sn",mysqli_error($link));
- }
- ?>
- connected successfullyerror: Table 'practice.studentinfo' doesn't exist
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement