close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

MySQLi ->execute(); generate Error 500

Thread began 8/06/2014 12:48 pm by David Mancuso | Last modified 8/11/2014 11:24 am by Jason Byrnes | 1048 views | 5 replies |

David Mancuso

MySQLi ->execute(); generate Error 500

Hi, in local server, I don't have any problem with MySQLi query. But if I upload all files on server (php version 5.3.24), all page where the are a MySQLi query generate Error 500. I changed correctly configuration file. All data are right.
If I remove namequery->execute(); I don't have any error 500.

Sign in to reply to this post

Jason ByrnesWebAssist

I'll need to troubleshoot directly, see the private message section.

Sign in to reply to this post

David Mancuso

Thank you!

Sign in to reply to this post

Jason ByrnesWebAssist

The 500 error is generic error hosts will use to mask the actual error that is occurring.

normally, turning on error reporting:
<?php
error_reporting(E_ALL);
ini_set('display_errors','on');
?>

should show the true error, I added that code at line but it is not showing the true error. Sometimes hosts will set the server so that the error reporting cannot be changed using PHP code, looks like that is the case with this host. You will need to contact the host to have them look into the error logs to find the true error that is occurring. once i know what the true error says i can troubleshoot.


one this I see is that the connection, query and the table you are querying all use the same name:
test


you should use unique names for the connection and recordset.

Sign in to reply to this post

David Mancuso

Thank you for you preciuos support. I have updated the PHP version to 5.4 and the problem was solved.

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear it is working.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...