I have a script with over 500 lines so I've pulled the error checking aprt out to get a little help:
<html>
<head>
</head>
<body>
the problem is that the script runs everything inside both IF statment. Thats a bad thing.<BR><BR><BR>
<?php
//an error in the script will increase this number
$errorchecker1=0
//base number just to compare against
$errorchecker2=1;
//this would be the no error function
if ($errorchecker1<$errorchecker2);
{
echo "good upload-should read 0<1 == ";echo $errorchecker1; echo"<"; echo $errorchecker2;echo "<BR>";
}
//this would be the functiopn if there is an error
if ($errorchecker1>$errorchecker2);
{
echo "bad upload-should read 4>1 == ";echo $errorchecker1; echo">"; echo $errorchecker2;echo "<BR>";
return;
}
?>
</body>
</html>
Any help is greatly appriciated. Im suring Im just missing something stupid.