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 to the CF scene
    Join Date
    Dec 2010
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    If statement HELP [PHP]

    Solved.
    Last edited by matt0268; 02-14-2013 at 11:37 PM.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,979
    Thanks
    4
    Thanked 2,659 Times in 2,628 Posts
    That's a simple matter of replacing this: echo $row["availability"]; with the if statement, or using a ternary: echo $row['availability'] ? 'available' : 'not available';.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #3
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Fou-Lu View Post
    That's a simple matter of replacing this: echo $row["availability"]; with the if statement, or using a ternary: echo $row['availability'] ? 'available' : 'not available';.
    Yeah thanks, i knew i was doing it right, just coding it dumb got it sorted now thanks


  •  

    Posting Permissions

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