Jump to content


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


"Fatal error: Function name must be a string in..." error *solved*

Recommended Posts

Hi guys can you help me on this one? I have this function called ColApprovalInsert() and 2 files are using it namely col_approve.php and my dblib.inc and i can't figure out what made it to make such an error. Here they are---


$_SESSION['memID'] = $_GET['memID'];
$_SESSION['amount'] = $_GET['amount'];
$_SESSION['principal'] = $_GET['principal'];
$_SESSION['or_no'] = $_GET['or_no'];
$_SESSION['loan_accnt_ID'] = $_GET['loan_accnt_ID'];
$_SESSION['col_date'] = $_GET['col_date'];
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<title>Cooperative Software v1.0::Loan Collection</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<?php include ("styles/mystyles.css"); ?>
<?php include ("libs/publicnav.inc"); ?>
<p align="center">Data is Stored!! Thank You!</p>
<p align="center"><a href="personal_or.php">Personal OR</a></p>
          $memID = $_GET['memID'];
          $amount = $_GET['amount'];
          $principal = $_GET['principal'];
          $or_no= $_GET['or_no'];
          $loan_accnt_ID = $_GET['loan_accnt_ID'];
          $col_date = $_GET['col_date'];
<div id="footer"><?php include "footer.php"; ?></div>


function ColApprovalInsert($memID,$amount,$principal,$or_no,$loan_accnt_ID,$col_date,$loan_type_ID)
  global $link;
  $query ="INSERT INTO loan_collection(members_ID,loan_type_ID,loan_accnt_ID,date,amount,principal,or_no)
VALUES ($memID, $loan_type_ID, $loan_accnt_ID, $col_date, $pay_period, $amount, $principal, $or_no ) ";

  Can you tell where did I go wrong? Pls help me...

Share this post

Link to post
Share on other sites


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.