Your IP : 3.139.79.187


Current Path : /home/lentoinv/churchmr.com/cludes/
Upload File :
Current File : //home/lentoinv/churchmr.com/cludes/connect2.inc.php

	<?php
define("DB_SERVER", "localhost");
define("DB_USER", "lentoinv_churchm");//enter your database username
define("DB_PASS", "AGpDH0&Zhev");//databse password
define("DB_NAME", "lentoinv_churchm");//database name

$db = new mysqli(DB_SERVER, DB_USER, DB_PASS, DB_NAME);
	
$dd = date('d');
$mm = date('m');
$yy = date('y');
$ww = date('W');
$today = date('ymd');	

function sqLx($table,$col,$val,$item){
  global $db;
$sql=$db->query("SELECT * FROM $table WHERE $col='$val' ")or die(mysqli_error()); 
$row = mysqli_fetch_assoc($sql); 
return $row[$item];
}

function sqL1($table,$col,$val){
  global $db;
$sql=$db->query("SELECT * FROM $table WHERE $col='$val' ")or die(mysqli_error()); 
return mysqli_num_rows($sql); 
}

function sqL2($table,$col,$val,$col2,$val2){
  global $db;
$sql=$db->query("SELECT * FROM $table WHERE $col='$val' AND $col2='$val2' ")or die(mysqli_error()); 
return mysqli_num_rows($sql); 
}

?>

?>