Mysql Internal Server Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about internal server error wordpress Stack Overflow the company Business Learn more about hiring developers or posting ads with
Internal Server Error 500
us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is 500 internal server error youtube a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Internal Server Error on php submit with MySQL commands up vote 0 down vote 500 internal server error php favorite I get an internal server error with the following code... any suggestions:
There is no other code on the page, and it self submits fine UNLESS I place a MySQL query inside the text field, such as SELECT s FROM d WHERE 1=1 Then I get the following error: The server encountered500 Internal Server Error Iis
an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@test.info 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. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. I do have some .htaccess rules going on, but I don't know how that would effect a query that doesn't do anything or go anywhere... php mysql share|improve this question edited Jan 13 '10 at 19:25 asked Dec 30 '09 at 23:11 kylex 5,1942580142 How does the MySQL statement get put into the .php page? –wallyk Dec 30 '09 at 23:16 If I type in the SQL statement in the input box. I think it's a server config issue, but I don't know where to begin to look. –kylex Dec 30 '09 at 23:20 Unrelated (or only marginally related, if the mod_security guess is correct, as I suspect), but you need to htmlspecialchars your echoing of PHP_SELF, the same as any other string you write into HTML. Otherwise you risk breakages and cross-site-scri
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss how to fix 500 internal server error the workings and policies of this site About Us Learn more about server error 404 Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow
Http Error 500 Php
Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each http://stackoverflow.com/questions/1983013/internal-server-error-on-php-submit-with-mysql-commands other. Join them; it only takes a minute: Sign up Why do I get an internal server error from my SQL query? up vote 0 down vote favorite I am attempting to retrieve some data from my database, I appear to be able to connect to the database as I do not get an error message after the http://stackoverflow.com/questions/28372225/why-do-i-get-an-internal-server-error-from-my-sql-query connection is tested. But when I attempt to run a select query, it causes an internal error. If I take the FROM part away from the query, the page loads with no data. If I add the FROM part back in, with the table to be selected from, the internal error occurs. The code is below: $con = mysqli_connect("50.62.209.87:3306","myusername","mypassword", "FiveExtras"); // Check connection if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $query = "SELECT `EventVenue`,`EventDate`,`EventTime`, `EventPostCode` FROM `event`"; $result = mysqli_query($con, $query); $row = $result; echo $row; php share|improve this question edited Feb 6 '15 at 19:32 halfer 13k54075 asked Feb 6 '15 at 18:17 user3519506 314 3 Check out your error_log –pbaldauf Feb 6 '15 at 18:19 I dont know what I am looking for though –user3519506 Feb 6 '15 at 18:30 If you are using XAMPP have a look at this question –pbaldauf Feb 6 '15 at 18:33 No using XAMPP, will have a lok at it anyway –u
Connectors More MySQL.com Downloads Developer Zone Section Menu: Documentation Home MySQL 5.5 Reference Manual Preface and Legal Notices General Information Installing and Upgrading MySQL Tutorial MySQL Programs MySQL https://dev.mysql.com/doc/refman/5.5/en/error-messages-server.html Server Administration Security Backup and Recovery Optimization Language Structure Globalization Data Types Functions and Operators SQL Statement Syntax The InnoDB Storage Engine Alternative Storage Engines High Availability and Scalability Replication MySQL Cluster NDB 7.2 Partitioning Stored Programs and Views INFORMATION_SCHEMA Tables MySQL Performance Schema Connectors and APIs Extending MySQL MySQL Enterprise Edition MySQL Workbench MySQL 5.5 Frequently Asked server error Questions Errors, Error Codes, and Common Problems Sources of Error Information Types of Error Values Server Error Codes and Messages Client Error Codes and Messages Problems and Common Errors How to Determine What Is Causing a Problem Common Errors When Using MySQL Programs Access denied Can't connect to [local] MySQL server Lost connection to MySQL server Client does not internal server error support authentication protocol Password Fails When Entered Interactively Host 'host_name' is blocked Too many connections Out of memory MySQL server has gone away Packet Too Large Communication Errors and Aborted Connections The table is full Can't create/write to file Commands out of sync Ignoring user Table 'tbl_name' doesn't exist Can't initialize character set File Not Found and Similar Errors Table-Corruption Issues Administration-Related Issues Problems with File Permissions How to Reset the Root Password What to Do If MySQL Keeps Crashing How MySQL Handles a Full Disk Where MySQL Stores Temporary Files How to Protect or Change the MySQL Unix Socket File Time Zone Problems Query-Related Issues Case Sensitivity in String Searches Problems Using DATE Columns Problems with NULL Values Problems with Column Aliases Rollback Failure for Nontransactional Tables Deleting Rows from Related Tables Solving Problems with No Matching Rows Problems with Floating-Point Values Optimizer-Related Issues Table Definition-Related Issues Problems with ALTER TABLE TEMPORARY Table Problems Known Issues in MySQL Restrictions and Limits Indexes MySQL Glossary Related Documentation MySQL 5.5 Release Notes Download this Manual