<?php require_once('Connections/Verbinding.php'); ?>
<?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;
}
}
mysql_select_db($database_Verbinding, $Verbinding);
$query_Recordset1 = "SELECT Chatboxes.`1`, Chatboxes.`2`, Chatboxes.`3`, Chatboxes.`4`, Chatboxes.`5`, Chatboxes.`6`, Chatboxes.`7`, Chatboxes.`8`, Chatboxes.`9`, Chatboxes.`10`, Chatboxes.`11`, Chatboxes.`12`, Chatboxes.`13`, Chatboxes.`14`, Chatboxes.`15`, Chatboxes.`16`, Chatboxes.`17`, Chatboxes.`18`, Chatboxes.`19`, Chatboxes.`20` FROM Chatboxes";
$Recordset1 = mysql_query($query_Recordset1, $Verbinding) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<?php
$hostname_Database = "host";
$database_Database = "db";
$username_Database = "username";
$password_Database = "pass";
$Database = mysql_pconnect($hostname_Database, $username_Database, $password_Database) or trigger_error(mysql_error(),E_USER_ERROR);
mysql_query( "UPDATE Chatboxes SET
1 = 'true', 2 = 'true' ,3 = 'true',4 = 'true',5 = 'true',6 = 'true',7 = 'true',8 = 'true',9 = 'true',10 = 'true',11 = 'true',12 = 'true',13 = 'true',14 = 'true',15 = 'true',16 = 'true',17 = 'true',18 = 'true',19 = 'true',20 = 'true'" );
?>
</head>
<body>
<p>
<label>
<input type="text" name="t1" id="t1" />
</label>
</p>
<p>
<input type="text" name="t2" id="t2" />
</p>
<p>
<input type="text" name="t3" id="t3" />
</p>
<p>
<input type="text" name="t4" id="t4" />
</p>
<p>
<input type="text" name="t5" id="t5" />
</p>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>