I am happy for your review and suggestions to troubleshoot this little problem of mine:
I suspect either the script or html returns this Firefix browser error message:
The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.
the error log shows this message:
"uncaught exceptionermission denied to call method Location.toString"
IE returns the same browser message but I cannot find the error log to see what it says.
here is the snippet of code from the web page. I pulled it from a book i am using to learn mysql and maybe there is a typo that I am too much a novice to see (yet).
Thanks
Yamy
<form method="get" action="add.php">
companyName: <input type="text" name="companyName">
contactName: <input type="text" name="contactName">
phone: <input type="text" name="phone">
<input type="submit" name="add" value="submit">
</form>
<?php
if($add) {
mysql_connect("mysql.someserver.com", "user", "password");
mysql_select_db("dlr");
$query="insert into company (companyName, contactName, phone)";
$query.=" values('$companyName','$contactName','$phone')";
$result=mysql_query($query);
if ($result) echo "<b>added one row successfully.</b>";
}
?>
I suspect either the script or html returns this Firefix browser error message:
The server encountered an unexpected condition which prevented it from fulfilling the request.
The script had an error or it did not produce any output. If there was an error, you should be able to see it in the error log.
the error log shows this message:
"uncaught exceptionermission denied to call method Location.toString"
IE returns the same browser message but I cannot find the error log to see what it says.
here is the snippet of code from the web page. I pulled it from a book i am using to learn mysql and maybe there is a typo that I am too much a novice to see (yet).
Thanks
Yamy
<form method="get" action="add.php">
companyName: <input type="text" name="companyName">
contactName: <input type="text" name="contactName">
phone: <input type="text" name="phone">
<input type="submit" name="add" value="submit">
</form>
<?php
if($add) {
mysql_connect("mysql.someserver.com", "user", "password");
mysql_select_db("dlr");
$query="insert into company (companyName, contactName, phone)";
$query.=" values('$companyName','$contactName','$phone')";
$result=mysql_query($query);
if ($result) echo "<b>added one row successfully.</b>";
}
?>