Jump to content

Doing multiple queries in one script.


White_Lily

Recommended Posts

It shouldn't... Getting a 500 probably means there was a fatal error in the script. I don't know where but there's an option to turn on and turn off that "if the script has a problem then show a 500 error" setting; doing that means you'll get to see error messages right in the browser. Otherwise take a look at Apache's error log for more information about what went wrong.

 

Your code will probably look something like

include/require files that let you connect to the database

run the first query

stuff

run the second query

maybe disconnect but it's not required

Doesn't having 2 queries break the script and show a 500 error? or thats what happens whenever ive done 2 queries in one script...

 

No...  Take a look at the bottom of the Freak board, there are usually 12-20 queries each load.  How would that be possible?

 

If you have a specific question, show the goods.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.