Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 20-02-06
Registered User
 
Join Date: Feb 2006
Location: Gillingham
Posts: 503
Thanks: 0
Thanked 0 Times in 0 Posts
Donk is an unknown quantity at this point
  Internal PHP Processing Error (#99911)

I've had a script running on a Linux server (FreeBSD PHP 4.4.1) for over 6 months and I have just stated to get this error.

The script runs ok on my local computer (Windows and PHP 5) and also another server (Linux and PHP 4.3.11).

I've Googled for this error and checked both php.net and apache.org but can't find any references to the error number.

Any pointers would be appreciated.

bob

For info the section of code that appears to fail is the result of of a form update (the input of new employees works ok as does the input form itself which is part of the same PHP script).
Quote:
$employee=empees();
if ($_POST[update]=="Update") {
for ($i=0;$i< count($employee);$i++){
$em="em".$employee[$i][0];
if ($employee[$i][3]!=$_POST[$em]){
$query = "UPDATE employee SET email='".$_POST[$em]."' WHERE payno='".$employee[$i][0]."'";
$result = mysql_query($query) or die("Query failed : " . mysql_error());
$employee[$i][3]=$_POST[$em];
echo "<br> ".$employee[$i][1]." has been updated";
}
}
echo "<table>";
for ($i=0;$i< count($employee);$i++){
$pw="pwd".$employee[$i][0];
if ($_POST[$pw]){
$password=getpass();
$query = "UPDATE employee SET password='".md5($password)."' WHERE payno='".$employee[$i][0]."'";
$result = mysql_query($query) or die("Query failed : " . mysql_error());
$employee[$i][3]=$_POST[$em];
echo "<tr><td>".$employee[$i][0]."</td><td> ".$employee[$i][1]."</td><td> new Password is </td><td>".$password. "</td></tr>" ;
}
}
echo "</table>";
for ($i=0;$i< count($employee);$i++){
$del="del".$employee[$i][0];
if ($_POST[$del]){
$deldate=date("Ymd",strtotime("last Saturday")) ;
$query = "UPDATE employee SET dateleft='".$deldate."' WHERE payno='".$employee[$i][0]."'";
$result = mysql_query($query) or die("Query failed : " . mysql_error());
$employee[$i][3]=$_POST[$em];
}
}
}

function empees()
{
$i=0;
$query="SELECT * FROM employee ORDER BY payno";
$result = mysql_query($query) or die("Query failed : " . mysql_error());
while ($line = mysql_fetch_array($result, MYSQL_NUM)){
$employee[$i][0]=$line[0];
$employee[$i][1]=$line[1];
$employee[$i][2]=$line[2];
$employee[$i][3]=$line[3];
$employee[$i][4]=$line[5];
$i++;
}
return $employee;}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 20-02-06
Registered User
 
Join Date: Feb 2006
Location: Gillingham
Posts: 503
Thanks: 0
Thanked 0 Times in 0 Posts
Donk is an unknown quantity at this point
The Problem has been sorted:

It was caused by an antispam measure introduced on the server.

To help prevent spamming my server blocks all input forms with more than 10 email addresses.

My only complaints are:
1/ Why didn't they announce the changes.
2/ Why don't people ever think to put relevant error messages in softtware.

It would have saved me a lot of wasted time and effort.

bob
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anyone anygood with xml, php, mysql and Affiliate Window AnnonnyMouse The Affiliate Marketing Lounge 1 23-09-04 11:00 AM
PHP - No input file specified. - Problem Barry Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 1 02-08-04 10:57 AM
Simple form menu php processing probem lakrasia Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 7 17-05-04 12:16 PM
PHP or Browser Timeout? Barry Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 6 28-04-04 01:04 PM
PHP hints and tips Rich Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 4 27-10-03 12:41 AM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7