Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35
  1. #11
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    what about if you do action="?"

    or another non consequential characters such as #
    How could this hapen to meeeeeeeeeeeeeee?lol.

  2. #12
    Join Date
    Mar 2008
    Posts
    173
    Tokens
    0

    Default

    Its going to post to whatever you tell it to.

    If you tell it to post to ? it's going to post to pagename.php?

    If you tell it to post to ?action=edit, it is going to post to pagename.php?action=edit

  3. #13
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    ah so using ? is quicker than <?php echo $_SERVER['PHP_SELF']; ?> and more efficient?
    How could this hapen to meeeeeeeeeeeeeee?lol.

  4. #14
    Join Date
    Mar 2008
    Posts
    173
    Tokens
    0

    Default

    Probably, I haven't timed it or tried it. PHP_SELF is just echoing the filename of that script.

  5. #15
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    Does anybody know what's wrong with this?

  6. #16
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    take out the @ signs, and in your mysql query to mysql_query("blabla") or die(mysql_error());
    How could this hapen to meeeeeeeeeeeeeee?lol.

  7. #17
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    So I just add or die(mysql_error()); to it?

    Like this?
    PHP Code:
    mysql_query"UPDATE `settings` SET `title` = '$title', `main_logo` = '$logo', `offline_text` = '$offline', `status` = '$status', `logo_left` = '$left'" ) or die(mysql_error()); 

  8. #18
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    correct, this will produce an error if anything goes wrong, you should always do this in development, and never use @

    Edit 97 till 1000 Oo
    Last edited by Hypertext; 09-03-2008 at 12:06 AM.
    How could this hapen to meeeeeeeeeeeeeee?lol.

  9. #19
    Join Date
    Mar 2008
    Posts
    173
    Tokens
    0

    Default

    Quote Originally Posted by Reconix View Post
    correct, this will produce an error if anything goes wrong, you should always do this in development, and never use @

    Edit 97 till 1000 Oo
    Again I say, if you have or die() on it, the @ doesn't matter.

    There are different kinds of outputs and @ only stops one type.

  10. #20
    Join Date
    Dec 2007
    Location
    Toronto, Ontario, Canada
    Posts
    689
    Tokens
    0

    Default

    No, that doesn't fix it. It doesn't give a mySQL error either.

    Jesus, wth is wrong with it. ;l

Page 2 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •