Results 1 to 16 of 16

Thread: [RESOLVED] What is...

  1. #1

    Thread Starter
    Hyperactive Member ..:RUDI:..'s Avatar
    Join Date
    Aug 2005
    Location
    Yorkshire, England! c0d: Da Vinci
    Posts
    344

    Resolved [RESOLVED] What is...

    ... the value of $result?
    PHP Code:
    $1['1'] = ;
    $
    1['2'] = 24 ;
    $
    1['3'] = ;

    $result = $1['1'] / $1['2'] * $1['3'] - $1['1'] ; 



    My Personal Home | MageBB Home | Elders Online
    Yes, Noteme is my father.

  2. #2
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: What is...

    0.98
    or
    -0.7916666...
    or
    42

  3. #3

    Thread Starter
    Hyperactive Member ..:RUDI:..'s Avatar
    Join Date
    Aug 2005
    Location
    Yorkshire, England! c0d: Da Vinci
    Posts
    344

    Re: What is...

    Quote Originally Posted by sevenhalo
    0.98
    WRONG The correct answer is "" (Without quotes).

    The code doesn't parse:
    Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/mage/public_html/rvcom/vbf.php on line 2

    PHP Code:
    $a['1'] = "1" ;
    $a['2'] = "24" ;
    $a['3'] = "5" ;

    $result $a['1'] / $a['2'] * $a['3'] - $a['1'] ; 
    Anyway, for arguments sake, the correct answer, with correct code (Above) is actually -0.791666666667.

    Thank you for resolving my thread.



    My Personal Home | MageBB Home | Elders Online
    Yes, Noteme is my father.

  4. #4
    Hyperactive Member Datacide's Avatar
    Join Date
    Jun 2005
    Posts
    309

    Re: [RESOLVED] What is...

    PHP in your FACE!

  5. #5

    Thread Starter
    Hyperactive Member ..:RUDI:..'s Avatar
    Join Date
    Aug 2005
    Location
    Yorkshire, England! c0d: Da Vinci
    Posts
    344

    Re: [RESOLVED] What is...




    My Personal Home | MageBB Home | Elders Online
    Yes, Noteme is my father.

  6. #6
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: [RESOLVED] What is...

    PHP still sucks.

  7. #7
    Hyperactive Member Datacide's Avatar
    Join Date
    Jun 2005
    Posts
    309

    Re: [RESOLVED] What is...

    Lol!



    ...Hey, wait a minute...
    PHP in your FACE!

  8. #8

    Thread Starter
    Hyperactive Member ..:RUDI:..'s Avatar
    Join Date
    Aug 2005
    Location
    Yorkshire, England! c0d: Da Vinci
    Posts
    344

    Re: [RESOLVED] What is...

    Quote Originally Posted by sevenhalo
    PHP still sucks.
    Just because you didn't know the answer!



    My Personal Home | MageBB Home | Elders Online
    Yes, Noteme is my father.

  9. #9
    Banned
    Join Date
    Nov 2005
    Posts
    2,367

    Re: [RESOLVED] What is...

    If PHP didn't suck, I would have been right.

  10. #10

    Thread Starter
    Hyperactive Member ..:RUDI:..'s Avatar
    Join Date
    Aug 2005
    Location
    Yorkshire, England! c0d: Da Vinci
    Posts
    344

    Re: [RESOLVED] What is...

    Quote Originally Posted by Datacide
    Lol!



    ...Hey, wait a minute...
    Who the hell allowed you into my thread?



    My Personal Home | MageBB Home | Elders Online
    Yes, Noteme is my father.

  11. #11

    Thread Starter
    Hyperactive Member ..:RUDI:..'s Avatar
    Join Date
    Aug 2005
    Location
    Yorkshire, England! c0d: Da Vinci
    Posts
    344

    Re: [RESOLVED] What is...

    Quote Originally Posted by sevenhalo
    If PHP didn't suck, I would have been right.
    No because I wrote wrong code... The strings were not defined properlylylylyly!



    My Personal Home | MageBB Home | Elders Online
    Yes, Noteme is my father.

  12. #12
    Hyperactive Member Datacide's Avatar
    Join Date
    Jun 2005
    Posts
    309

    Re: [RESOLVED] What is...

    Quote Originally Posted by ..:RUDI:..
    Who the hell allowed you into my thread?
    PHP Code:
    mysql_query(DELETE FROM VBFMembers WHERE username=.:RUDI:."); 
    PHP in your FACE!

  13. #13

    Thread Starter
    Hyperactive Member ..:RUDI:..'s Avatar
    Join Date
    Aug 2005
    Location
    Yorkshire, England! c0d: Da Vinci
    Posts
    344

    Re: [RESOLVED] What is...

    Quote Originally Posted by Datacide
    PHP Code:
    mysql_query(DELETE FROM VBFMembers WHERE username=.:RUDI:."); 
    That wouldn't work...

    1. That's not my username.
    2. You have no connection.
    3. You have no database selection.
    4. vBulletin doesn't use table VBFMembers.
    5. You didn't define the string properly "" was only ".
    6. .:RUDI:. should have been '.:RUDI:.', if of course .:RUDI:. was my username.

    NOW GET OUT OF MY THREAD!!!



    My Personal Home | MageBB Home | Elders Online
    Yes, Noteme is my father.

  14. #14
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,173

    Re: [RESOLVED] What is...

    Quote Originally Posted by ..:RUDI:..
    What is...
    love, baby don't hurt me... don't hurt me... no more.

  15. #15

    Thread Starter
    Hyperactive Member ..:RUDI:..'s Avatar
    Join Date
    Aug 2005
    Location
    Yorkshire, England! c0d: Da Vinci
    Posts
    344

    Re: [RESOLVED] What is...

    Quote Originally Posted by mendhak
    baby don't hurt me... don't hurt me... no more.
    Okay !



    My Personal Home | MageBB Home | Elders Online
    Yes, Noteme is my father.

  16. #16
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: [RESOLVED] What is...

    This thread is lystig.

Posting Permissions

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



Click Here to Expand Forum to Full Width