I am getting the following error when running this user preferences script. The script updates the users preferences into the database and worked fine before. Now that I am on a new server, it gives me this error and I don't understand because my server is running PHP 4.0. Any help would be appreciated :
<B>
Warning: Wrong parameter count for strip_tags() in
/usr/local/etc/httpd/htdocs/forum/flpreferences.php on line 19
</B>
The code I am using is as follows and if anybody can spot out what I'm
doing wrong, I would greatly appreciate it...John
:
<?php
require('config/messagedb.conf');
require('functions.php');
require('auth.php');;
anti();
if (isset($email)){
$email = addslashes(strip_tags($email));
$real_name = addslashes(strip_tags($real_name));
$location = addslashes(strip_tags($location));
$age = addslashes(strip_tags($age));
$sex = addslashes(strip_tags($sex));
$ima = addslashes(strip_tags($ima));
$homepage = addslashes(strip_tags($homepage));
$hobbies = addslashes(strip_tags($hobbies));
$quote = addslashes(strip_tags($quote));
$info = addslashes(strip_tags($info));
$ip = getenv("REMOTE_ADDR");
$sig = addslashes(strip_tags($sig, $allowedTags));
$image = addslashes($image);
$sqlUpdateUser = "
UPDATE
users
SET
email = '$email',
real_name = '$real_name',
location = '$location',
sex = '$sex',
ima = '$ima',
homepage = '$homepage',
hobbies = '$hobbies',
quote = '$quote',
info = '$info',
sig = '$sig',
age = '$age',
image = '$image'
WHERE
id = '$cookieId'
";
mysql_query($sqlUpdateUser);
echo mysql_error();
}
$sqlGetUser = "select * from users WHERE id = '$cookieId'";
$result = mysql_query($sqlGetUser);
$user = mysql_fetch_array($result);
?>