How to connect to databse with callback?

Status
Not open for further replies.

CodeFather

New member
PLEASE HELP ME
Hi guys i need to get information from databse with <xf:callback i connected to the php file
but when i tried to connect to databse i could not ,
some kind of bug happens
here is my php code:

PHP:
<?php
$host="localhost";
$user="null";
$pass="pass";
$db_Name="somthing";
//Creat Conection
$conn=new mysqli($host,$user,$pass,$db_Name);
if($conn->connect_error)
{
    die("Error accured try again.");
}
?>

if its possible tell me also i cant connect to XF.php file!
 
Status
Not open for further replies.
Back
Top Bottom