Added code block open and close around Mysqli example. (#26354)

* Update index.md

Added code block open and close around Mysqli example.

* Changed code block to use backticks.

* Removed php tags from code example

Removed php tags from code example.

* Added formatting, syntax highlighting
This commit is contained in:
pirland
2018-12-26 17:13:14 -06:00
committed by Manish Giri
parent 048e2a4e6e
commit 0e86226911

View File

@ -16,7 +16,7 @@ database simple and easy.
Some Examples from Mysqli are- Some Examples from Mysqli are-
<?php ```php
$con=mysqli_connect("localhost","root","","db_name") or die("Invalid User or Password...cannot connect"); $con=mysqli_connect("localhost","root","","db_name") or die("Invalid User or Password...cannot connect");
?> ```
here we are connecting to a database on the phpmyadmin structure with no password and database name-db_name Here we are connecting to a database on the phpmyadmin structure, with no password, and database named `db_name`.