Jump to content

xFalseProphet

New Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by xFalseProphet

  1. Thank you very much. I checked out your link and nothing there affects my code which made me think it was an sql error. Took a look at my code and it turned out i had missed a comma on one line, and 2 ' on another. I hate missing things like that. 

  2. This may sound like a really stupid question, but this is really bugging me.

     

    If i code something in PHP 5.5.11 and upload it to a server that is running PHP 5.4, would the code work correctly? I didnt think there was a super amount of difference between the two versions. Perhaps im wrong.

     

    The reason i asked is because someone has given me a project to help them with. Im running php 5.5.11. I coded it, tested in in xampp, working great. I upload it to his website, which he told me is currently running 5.4 (i tried phpinfo() but they have disabled it) and a majority of the functions i coded are no longer working. Things are not writing to the database, things collected from the database either dont show up on the website or they only show up when something gets posted after it, in which case the something posted after it doesnt show e.c.t.

     

    Is the difference that much it can break code?

     

    Thanks!

  3. Hello! This may sound like a stupid question but i have been trying to get this working all day and its driving me crazy.

     

    Ive been asked to take over development of this project, he sent me his code and its a little out of date so im trying to update it. Here is what i cant work out.

     

    I have this little snippet of code:

    if ($page == "showthread"){
    	showThread();
    } 

    There are several more like that, but you dont need a whole list.

     

    That code seems to be throwing up this error when i go to that specific page:

    Notice: Undefined index: error in .....

     

    All well and good, i would usually do this:

    if (isset($page) == "showthread"){
    	showThread();
    } 

    Thats fine and dandy, the error goes away. But now, when i go to that page, it redirects me and gives me my error message for a non-existing page.

     

    Its really frustrating me. Can you help me fix this little error?

×
×
  • 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.