🔒 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
  • 405
    Views
  • 2
    Participants
Last reply from:
Argument

Trending Topics

Online now

Members online
1,181
Guests online
861
Total visitors
2,042

Forum statistics

Threads
2,280,423
Posts
28,997,182
Members
1,225,793
Latest member
bhzinxz
Back
Top