Jump to content

DB.php


shirvo

Recommended Posts

This is the file that calls it. So i need the DB.php file to work around this

<?php

require_once 'DB.php';

$db_engine = 'mysql';
$db_user = 'root';
$db_pass = 'temp';
$db_host = 'localhost';
$db_name = 'logindata';

$datasource = $db_engine.'://'.
  $db_user.':'.
  $db_pass.'@'.
  $db_host.'/'.
    $db_name;

$db_object = DB::connect($datasource, TRUE);

if(DB::isError($db_object)) {
die($db_object->getMessage());
}

$db_object->setFetchMode(DB_FETCHMODE_ASSOC);


include('check_login.php');

?>
Link to comment
https://forums.phpfreaks.com/topic/26985-dbphp/#findComment-123399
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.