Sharp Tutorial
PHP with Mysql connection

Python

Java

C

C++

HTML/CSS

Java Script

PHP

SQL

C Programs

PHP Introduction

  • PHP home
  • PHP introduction
  • How to install and run
  • Syntax and Rule in PHP
  • Data type and operator
  • If else in php
  • Loop in php
  • Array in php
  • Sring in php
  • Function in php
  • Include in php

Working with Forms

  • Get and Post
  • Get Form input into PHP
  • Form Validation

PHP with MySQl

  • Connect PHP & Mysql
  • Insert using PHP Mysql
  • Select using PHP MySql
  • Delete Update using PHP Mysql
  • Login Page Example in PHP

Advanced PHP

  • Session in PHP
  • Cookies in PHP
  • File Handling in PHP
  • File Upload/Download PH

Object Oriented PHP

  • Class Obejct in PHP
  • Constructor in PHP
  • Destructor in PHP
  • Inheritance in PHP

PHP with Mysql connection

PHP may be connected with databases like mysql for dynamic applications. For that php need to be connect with database like mysql which already installed with wamp server or xamp server

To learn SQL queries  go to   https://www.sharptutorial.com/sql-home/  

PHP connection with Mysql database

 <html>
<?php
$host="localhost";
$dbuser = "dbusername";
$password = "dbpassword";
$dbname= "databasename";
$conn = mysqli_connect($host, $dbuser, $password,$dbname);
echo "connected successfully";
?>
</html>

if all details like username , password and dbname are correct then it connected with database and print as following.

Enquiry about Course

Ask your Question

Click Here

Sharp (2) Tutorials

Video/ C Introduction

Watch video in full size

Video tutorial

Follow by Email
Facebook
Facebook
fb-share-icon
YouTube
Copyright © Sharp Tutorial
Build with WordPress
Wordpress Social Share Plugin powered by Ultimatelysocial
Sharp Tutorial