Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2002
    Location
    United Kingdom
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    2 commands on the same line, how ?

    Hello,

    How can you put two commands on the same line?

    I need the following two lines joined together:

    1.

    UPDATE $table SET redirects=redirects+1 WHERE (id='$id')

    2.

    SELECT * FROM $table WHERE (id='$id').


    Ok, bye ...

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    frankfurt, german banana republic
    Posts
    1,848
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Put a semicolon between them.

  • #3
    New Coder
    Join Date
    Aug 2002
    Location
    United Kingdom
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks guys, I got it.


  •  

    Posting Permissions

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