0

Hi,

function openingBalance($accountNum) {
	$sql_OpenBal = " SELECT closing_balance FROM bank_balance				WHERE bank_account.account_no = $accountNum ";
	$runSql = mysqli_query($mysqli, $sql_OpenBal);...

Red line generates an error. "Warning: mysqli_query() expects parameter 1 to be mysqli, null given".

I call function echo openingBalance (1500); How can i search $accountNum in SQL statement?
Thanks

1
Contributor
1
Reply
2
Views
9 Years
Discussion Span
Last Post by veledrom
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.