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

Trending Topics

Online now

Members online
860
Guests online
1,370
Total visitors
2,230

Forum statistics

Threads
2,292,268
Posts
29,075,797
Members
1,210,243
Latest member
freeaaaa
Back
Top