quick php question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mkx
    Confirmed User
    • Nov 2003
    • 4001

    #1

    quick php question

    $id=$date_id;
    $nextid=(1 number lower than nextid)

    ex. if id=10, nextid=9

    How do I write this in php?
  • PSD
    PornSiteDomains.com
    • Oct 2002
    • 1265

    #2
    do you mean something like this?

    $nextid = $id-1;
    PornSiteDomains.com

    Comment

    • myneid
      Confirmed User
      • Jan 2003
      • 736

      #3
      you are probably looking for
      $id--;
      Tanguy 0x7a69 inc. Programmer/President/CEO
      http://www.0x7a69.com
      A Leader in Programming since 1996
      PHP, Ruby on Rails, MySQL, PCI DSS, and any Technical Consulting

      Comment

      • mkx
        Confirmed User
        • Nov 2003
        • 4001

        #4
        thanks, i will give that a try

        Comment

        • Damian_Maxcash
          So Fucking Banned
          • Oct 2002
          • 12745

          #5
          Originally posted by myneid
          you are probably looking for
          $id--;

          Comment

          • mkx
            Confirmed User
            • Nov 2003
            • 4001

            #6
            thanks again! also whats a quick php page redirect code?

            Comment

            • broke
              Confirmed User
              • Aug 2003
              • 4501

              #7
              Originally posted by mkx
              thanks again! also whats a quick php page redirect code?
              PHP Code:
              header("Location: http://www.location.com/blah/blah"); 
              
              Perfect Gonzo

              Comment

              • mkx
                Confirmed User
                • Nov 2003
                • 4001

                #8
                it needs to be in php and i don't think it can be in the header as I have to redirect it after a bunch of hidden php code

                Comment

                Working...