🔒 Closed Php tricks (connecting to database)

Status
Not open for further replies.

RNA30

Fanatic
<?php
$host = "localhost";
$user = "root";
$password = "";
$database = "test";

$dbcon=mysqli_connect($host,$user,$password);
mysqli_select_db($dbcon,$database) or die(mysqli_error());
?>
 
Status
Not open for further replies.

About this Thread

  • 1
    Replies
  • 435
    Views
  • 2
    Participants
Last reply from:
Argument

Online now

Members online
1,228
Guests online
7,469
Total visitors
8,697

Forum statistics

Threads
2,327,964
Posts
29,238,912
Members
1,161,356
Latest member
nyorkie03
Back
Top