๐Ÿ”’ 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
  • 432
    Views
  • 2
    Participants
Last reply from:
Argument

Trending Topics

Online now

Members online
1,127
Guests online
3,798
Total visitors
4,925

Forum statistics

Threads
2,314,217
Posts
29,177,323
Members
1,184,036
Latest member
applecut
Back
Top