Fatal error: Function name must be a string in
Hi Ray,
I'm getting an error Fatal error: Function name must be a string in /var/www/moshpty/editor.php on line 11 with the following code
Line 11 is the bindParam the itemid is an int
<?php require_once('Connections/web_catalogues_i.php'); ?>
<?php require_once("webassist/ckeditor/ckeditor.php"); ?>
<?php require_once('webassist/mysqli/rsobj.php'); ?>
<?php
$rsCatItem = new WA_MySQLi_RS("rsCatItem",$web_catalogues_i,1);
$rsCatItem->setQuery("SELECT catalogueitems.catItemDetailsID, catalogueitems.catItemDescLong FROM catalogueitems WHERE catalogueitems.catItemDetailsID =?");
$rsCatItem->bindParam("i", "".$_GET('itemid') ."", "-1"); //paramid
$rsCatItem->execute();
?>
any ideas
Cheers
UPDATE:
All fixed wrong bindParam should be (isset($_GET['id'])?$_GET['id']:"")