tupakapoor
New Member
- Messages
- 25
- Reaction score
- 0
- Points
- 0
Hi,
I get the following error when trying to connect to mysql:
Fatal error: Call to undefined function mysqli_query() in /home/kapoora/public_html/dirtybirdreport.com/functions.php on line 10
I've seen in other posts that this function works for everyone else, so I'm not sure what the problem is. Here's my code (i included the text of a required file):
What am I doing wrong? TIA.
I get the following error when trying to connect to mysql:
Fatal error: Call to undefined function mysqli_query() in /home/kapoora/public_html/dirtybirdreport.com/functions.php on line 10
I've seen in other posts that this function works for everyone else, so I'm not sure what the problem is. Here's my code (i included the text of a required file):
Code:
$host = 'mysql.x10hosting.com';
$port = 3306;
$username = XXX;
$pwd = XXX;
$db = XXX;
function dbConnect() {
return mysqli_connect($host, $username, $pwd, $db, $port);
}
function dbQuery($query, $DBConn) {
// line 10--> return mysqli_query($DBConn, $query);
}
function dbClose($DBConn) {
mysqli_close($DBConn);
}
What am I doing wrong? TIA.