Apache error.
Posted: Thu Sep 11, 2003 8:28 pm
Why am I getting an error from my Apache server that looks like this:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, email@company.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/1.3.27 Server at http://www.somesite.com Port 80
All my webpages work....except for the following page, which is giving me the error:
Any clues??
HELP !!
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, email@company.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/1.3.27 Server at http://www.somesite.com Port 80
All my webpages work....except for the following page, which is giving me the error:
Code: Select all
<?php require("../includes/dbconnect.inc"); ?>
<?php require("../includes/functions.inc"); ?>
<?php require("../includes/styles.inc"); ?>
<?php
if (isset($id_company))
{
$company = mysql_query("SELECT * FROM company WHERE company_id = '".$id_company."'")
or die("<b>MySQL Error:</b> ".mysql_errno()." : ".mysql_error());
$company_fill = mysql_fetch_array($company);
//building phone numbers for display, from database
if (!$company_fill["phone_1"]=="")
{
$db_phone_number_1 = ($company_fill["phone_1"]);
$area_code_1 = substr($db_phone_number_1, -10, 3);
$three_digit_1 = substr($db_phone_number_1, -7, 3);
$four_digit_1 = substr($db_phone_number_1, -4, 4);
}
if (!$company_fill["phone_2"]=="")
{
$db_phone_number_2 = ($company_fill["phone_2"]);
$area_code_2 = substr($db_phone_number_2, -10, 3);
$three_digit_2 = substr($db_phone_number_2, -7, 3);
$four_digit_2 = substr($db_phone_number_2, -4, 4);
}
if (!$company_fill["fax_1"]=="")
{
$db_phone_number_3 = ($company_fill["fax_1"]);
$area_code_3 = substr($db_phone_number_3, -10, 3);
$three_digit_3 = substr($db_phone_number_3, -7, 3);
$four_digit_3 = substr($db_phone_number_3, -4, 4);
}
if (!$company_fill["fax_2"]=="")
{
$db_phone_number_4 = ($company_fill["fax_2"]);
$area_code_4 = substr($db_phone_number_4, -10, 3);
$three_digit_4 = substr($db_phone_number_4, -7, 3);
$four_digit_4 = substr($db_phone_number_4, -4, 4);
}
}
?>
<body>
<form method=post action="contact_inputdata.php"><b>
<table class="main">
<tr>
<td colspan=2 valign="top"><p class="title">New Company</p></td>
</tr>
<tr>
<td align=center colspan=2><hr></td>
</tr>
<tr><td>
<table>
<tr>
<td width="33%"><p>Company Name</p></td>
<td><p><input type="text" name="company_name" size="43" value="<?php echo $company_fill["company_name"]; ?>"></p></td>
</tr>
<tr>
<td><p>Abbreviation</p></td>
<td><font face="Arial,Helvetica" size="2" color="Black"><input type="text" name="abbreviation" size="5" value="<?php echo $company_fill["abbreviation"]; ?>"></font></td>
</tr>
<tr>
<td><p>Phone #1</p></td>
<td><p>
(<input type="text" name="phone_1a" size="3" maxlength="3" value="<?php echo $area_code_1; ?>">) - <input type="text" name="phone_1b" size="3" maxlength="3" value="<?php echo $three_digit_1; ?>"> - <input type="text" name="phone_1c" size="4" maxlength="4" value="<?php echo $four_digit_1; ?>">
</td>
</tr>
<tr>
<td><p>Phone #2</p></td>
<td><p>
(<input type="text" name="phone_2a" size="3" maxlength="3" value="<?php echo $area_code_2; ?>">) - <input type="text" name="phone_2b" size="3" maxlength="3" value="<?php echo $three_digit_2; ?>"> - <input type="text" name="phone_2c" size="4" maxlength="4" value="<?php echo $four_digit_2; ?>">
</td>
</tr>
<tr>
<td><p>FAX #1</p></td>
<td><p>
(<input type="text" name="fax_1a" size="3" maxlength="3" value="<?php echo $area_code_3; ?>">) - <input type="text" name="fax_1b" size="3" maxlength="3" value="<?php echo $three_digit_3; ?>"> - <input type="text" name="fax_1c" size="4" maxlength="4" value="<?php echo $four_digit_3; ?>">
</td>
</tr>
<tr>
<td><p>FAX #2</p></td>
<td><p>
(<input type="text" name="fax_2a" size="3" maxlength="3" value="<?php echo $area_code_4; ?>">) - <input type="text" name="fax_2b" size="3" maxlength="3" value="<?php echo $three_digit_4; ?>"> - <input type="text" name="fax_2c" size="4" maxlength="4" value="<?php echo $four_digit_4; ?>">
</td>
</tr>
<tr>
<td><p>Web Site</p></td>
<td><input type="text" name="website" size="43" value="<?php echo $company_fill["website"]; ?>"></td>
</tr>
<tr>
<td valign="top"><p>Company Type</a></p></td>
<td><!-- fills role information from database -->
<select name="role_id[]" size="10" multiple="multiple">
<?php
$results = mysql_query("SELECT company_role_id, company_role FROM company_role_list ORDER BY company_role ASC")
or die("<b>MySQL Error 1:</b> ".mysql_errno()." : ".mysql_error());
if (mysql_numrows($results)>0)
{
$numrows = mysql_numrows($results);
$x = 0;
while ($x<$numrows)
{
$role_array = mysql_fetch_array($results);
$description = ($role_array["company_role"]);
$theID = ($role_array["company_role_id"]);
?>
<option value="<?php echo $theID; ?>"><?php echo $description; ?></option>
<?php
$x++;
}
}
?>
</selected>
</td>
</tr>
<tr>
<td><p>Remarks</p></td>
<td><textarea name="company_remarks" rows="5" cols="26"></textarea></td>
</tr>
</table>
</td></tr>
<tr>
<td align=center colspan=2><hr></td>
</tr>
<tr>
<td colspan=2>
<input type="submit" value="Submit data">
<input type="hidden" name="new_contact">
</td>
</tr>
</table></b>
</form>
</body>HELP !!