PHP Problem

by 5 replies
6
I've setup an adboard script on a subdomain. As part of the admin side of this script there is a settings page that allows you to change various details regarding the look, prices, etc.,

Once this info has been inputed you click the save button and the info should be saved to a database. All is fine until you try to make the save. The script obviously tries to do what it is programmed to do and return you to the page where you inputed the data in the first place.

It doesn't do the return to the original page, if fact it actually states that I don't have permission to actually be on this page. This is the page that I've just left (?)

Everything else regarding this script and its a big script, seems to be working. Any ideas?

Many thanks,

Phill
#programming #adboardscript #php #problem
  • Hard to say without knowing what script you are using or what kind of server you have it installed on or which kind of database you're using? It sounds like a bug to me (possibly due to depreciation issues caused by versioning if the script was written some time ago)! Have you tried asking the scripts vendor for assistance? I would guess that the problem is related to the actual code and that's what needs to be looked at!
  • I agree with Vulcanscripts, it could be a number of different things, without being able to look at the code, it is just a guessing game, but from what you describe it sort of sounds like the script may not have permission, so it could be in a supporting file, for example, if you had, like include, somefile.php

    and there was an error in somefile.php then you would not have permission to update the database, just a thought, but I would check all the supporting scripts, to start, and check for error logs, if you have that capability.
    • [1] reply
    • Script is EZADBoard which I'm installing on hostgator. I've checked the Mysql database and it doesn't even write the info to the database so that would probably explain why it can't come back to the original page.

      I received the script as part of a bundle so the version I own could be years old. It just seems strange that everything else seems to be ok including reading the database.

      I don't think its much, probably something to do with installing to a subdomain. I might try installing direct to a domain to see if it works then, if it does at least I'll have more of an idea of where to look.

      Phill
      • [1] reply

Next Topics on Trending Feed

  • 6

    I've setup an adboard script on a subdomain. As part of the admin side of this script there is a settings page that allows you to change various details regarding the look, prices, etc., Once this info has been inputed you click the save button and the info should be saved to a database. All is fine until you try to make the save. The script obviously tries to do what it is programmed to do and return you to the page where you inputed the data in the first place.