I"m getting two errors. I am not a programmer. Can usually grind it out the hard way but not getting anywhere with this one. I do know about the php button above. Didn’t think it was appropriate for
this since it’s just a part of the pages.
Notice: Undefined index: min in /phpvalidation.php on line 100
[php]
case ‘string’:
$this->validateString($var, $opt[‘min’], $opt[‘max’], $opt[‘required’]); <LINE 100
if(!array_key_exists($var, $this->errors))
{
$this->sanitizeString($var);
}
Warning: Cannot modify header information - headers already sent by (output started at /phpvalidation.php:100) in /doeditprofile.php on line 53
$publicOrNot = true;
if($_POST[‘publicProfile’] == “false”) { $publicOrNot = false; }
$dbhandle = new mysqli(“localhost”, “XXXXXX_website”, “2dc57pdgHxtLWfAQ”, “XXXXXX_archivemain”) or die(“Unable to connect to MySQL”);
$updateStatement = $dbhandle->prepare(“UPDATE users SET firstName=?, lastName=?, postcode=?, profileText=?”) or die(“errorUP”);
$updateStatement->bind_param(‘ssss’, $_POST[‘firstName’], $_POST[‘lastName’], $_POST[‘postcode’], $_POST[‘profileText’]) or die(“errorDO”);
$result = $updateStatement->execute() or die(“error 3”);
header(‘location: profile.php’); <LINE 53
}
[/php]
I don’t get how ‘min’ is undefined. Was getting a bunch of ‘undefined’'s but solved that with isset.
I’m lost.