Need Quick PHP Help

Discussion in 'Programming' started by getatune, Jun 6, 2009.

Thread Status:
Not open for further replies.
  1. #1
    I am working on a code and its giving me this error
    the code on 1165 is
    What Did I do wrong?
     
    getatune, Jun 6, 2009 IP
  2. kishore415

    kishore415 Well-Known Member

    Messages:
    1,462
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    160
    As Seller:
    100% - 0
    As Buyer:
    25.0% - 1
    #2
    Whats your intention to do actually?
     
    kishore415, Jun 6, 2009 IP
  3. buchin

    buchin Active Member

    Messages:
    156
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    Do you need quick help? PM me your MSN/Yahoo ID and lets solve your problem. That's definitely an error in your code.
     
    buchin, Jun 6, 2009 IP
  4. James Barcellano

    James Barcellano Active Member

    Messages:
    114
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    $this->page += $count + 1;

    perhaps?
     
    James Barcellano, Jun 6, 2009 IP
  5. Louis11

    Louis11 Active Member

    Messages:
    783
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    70
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    Your code is all kinds of wierd. First of all, it appears that you're trying to add a string 'count' to $this -> page. While there are no datatypes in PHP, per se, this is basically equivalent to adding 0. You are then trying to set it equal to one . . . The logic doesn't make any sense at all.

    In either case, you can't add a value using the shorthand +=, then continue to set it equal to another value.

    $this -> page += 1;
    $this -> page += $count;

    Would both be acceptable. Or you could do something like:
    $this -> page += $count;
    $this -> page = 1;

    Anyway, this is the wrong forum for this type of question ;)
     
    Louis11, Jun 6, 2009 IP
  6. getatune

    getatune Well-Known Member

    Messages:
    1,360
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    125
    As Seller:
    100% - 2
    As Buyer:
    100% - 0
    #6
    thanks. Worked
     
    getatune, Jun 6, 2009 IP
Thread Status:
Not open for further replies.