Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Php / MySQL update script sending empty response
#5
Toastyc12 Wrote:The line $searchStatus does not exist in Updatef.php, it links to the function getCharData which does.

I think I know my PHP thank you very much. It is blatantly obvious from your code and from my post what I referred to.

Toastyc12 Wrote:$SearchStatus is what gathers the results for each row fetched rom MySQL, and returns as an array to be stored into the corresponding row. It's a necessary part of the loop. I cannot put the functions inside the loop either, as functions can only be declared once.

From the given code, my guess is that $searchStatus is a boolean, $char is the name of the character and $charData seems to be a reference to an array where the function getCharData stores the data. Given that is all the code you're posting, not much to go on with. If you think the problem lies with the script taking too long, try increase the max execution time, tho, I got a feeling that it is something else, since you mentioned it only happened after server upgrade. Hard to say anything else without seeing more.
Reply


Messages In This Thread
Php / MySQL update script sending empty response - by GummyBear - 2011-02-23, 06:44 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)