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

Trending Topics

Online now

Members online
367
Guests online
3,786
Total visitors
4,153

Forum statistics

Threads
2,348,680
Posts
29,358,354
Members
1,094,651
Latest member
gaelzinho844
Back
Top