Error
I checked again, but could not find any issue either, but the error perstists. The use code is below:
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
if (PHP_VERSION < 6) {
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
}
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
$hoofdfoto = new WA_MySQLi_RS("hoofdfoto",$miedveld,1);
$hoofdfoto->setQuery("SELECT * FROM hoofdfoto");
$hoofdfoto->execute();?>
<?php
$sponsor_main = new WA_MySQLi_RS("sponsor_main",$miedema_i,1);
$sponsor_main->setQuery("SELECT * FROM sponsor_main");
$sponsor_main->execute();?>
<?php
$sponsoren_alb = new WA_MySQLi_RS("sponsoren_alb",$miedema_i,1);
$sponsoren_alb->setQuery("SELECT * FROM sponsoren_alb ORDER BY volgorde ASC");
$sponsoren_alb->execute();?>
<?php
$sponsoren_img = new WA_MySQLi_RS("sponsoren_img",$miedema_i,0);
$sponsoren_img->setQuery("SELECT * FROM sponsoren_img WHERE id_alb = ? ORDER BY volgorde ASC");
$rsImages->bindParam("i", "".($sponsoren_alb->getColumnVal("id_alb")) ."", "-1");
$sponsoren_img->execute();
?>