The text below is selected, press Ctrl+C to copy to your clipboard. (⌘+C on Mac) No line numbers will be copied.
Guest
C
By Guest on 27th February 2024 07:25:22 AM | Syntax: PYTHON | Views: 260



New Paste New paste | Download Paste Download | Toggle Line Numbers Show/Hide line no. | Copy Paste Copy text to clipboard
  1. <?php
  2.      $dbhost='iocalhost';
  3.      $dbuser='root';
  4.      $dbpass='rootroot';
  5.      //create connection
  6.      $conn=mysqli_connect($dbhost,$dbuser,$dbpass);
  7.      //chreck connection
  8.      if($conn->connect_error){
  9.        die("connection failed:".$conn->connect_error);
  10.      }
  11.      else
  12.      echo"connected successfully";
  13. ?>