Results 1 to 13 of 13

Thread: ????????????????(i am a big fglah) no one ask what a fglah is ok??

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    40

    Talking ????????????????(i am a big fglah) no one ask what a fglah is ok??

    how i can do x =x+1
    plase




    ÈÏßã ÊÚÑÝæÇ Ôæ ãÚäÇ ÝÌáå

  2. #2
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    ...
    My evil laugh has a squeak in it.

    kristopherwilson.com

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Re: ????????????????(i am a big fglah) no one asq wat is a fglah ok??

    Originally posted by Aiman
    how i can do x =x+1
    plase
    If you're serious then:

    x++;
    x = x + 1;
    x += 1;

    If you're not, then stop being stupid.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    40
    but I made this
    <?
    while (x<10)
    {
    $x=x+1;

    ***code****
    }
    ?>



    and I ended with a loop without a end

  5. #5
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Do this:

    Code:
    for($i = 0; $i < 10; $i++) {
      //code here
    }
    My evil laugh has a squeak in it.

    kristopherwilson.com

  6. #6
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    or, if you're in love with the while loop:

    Code:
    $x = 0;
    while ($x < 10) {
      $x++;
    
      //code here
    
    }
    Last edited by The Hobo; Oct 1st, 2002 at 12:17 PM.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  7. #7

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    40
    thanks a lot


    well can you help me also with that **code**?
    I am new to php and come from a vb enviroment
    I want to do this:
    for($i = 0; $i < 10; $i++) {
    {
    $x="name" & i
    echo $x
    }



    the result should be
    name0
    name1
    name2
    .
    .
    .
    name10

    I hope it is clear

  8. #8
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Code:
    for($i = 0; $i < 10; $i++) {
    {
      $x="name" . $i;
      echo $x . "<br>"; //or "$x<br>";
    }
    My evil laugh has a squeak in it.

    kristopherwilson.com

  9. #9
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    The period . is the concenation (sp?) string. Just like VB's &
    My evil laugh has a squeak in it.

    kristopherwilson.com

  10. #10

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    40
    thank you a lot you are really a good php programer


    if there is anything you need foe your forums(need<>php_code) I will try to provide it(as a little thanks )

    if you need anything send me an e-mail: [email protected]

  11. #11

    Thread Starter
    Member
    Join Date
    Mar 2002
    Posts
    40
    i want to ask you a last qustion ok??



    i have a txt file in the text file i add a line

    11561
    2121151
    3212
    42318541
    521
    612646842184
    7212132131651316131354651613
    8321321
    ....

    I want to load the last line and delete it(you may read this question once before my friend asked it) plz hlp

  12. #12
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Code:
    $contents = file('filename.txt');
    echo $contents(count(contents) -1);
    Should give you the last line of a file.
    My evil laugh has a squeak in it.

    kristopherwilson.com

  13. #13
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Originally posted by The Hobo
    The period . is the concenation (sp?) string. Just like VB's &
    Yes it is ... scarry huh? Threw me for a loop.... it's nice though.... no need to hit the shift key....

    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

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