Cazpa.com PHP Developer & Website Designer

7Mar/1012

PHP Basics: IF statement

The IF statement is used to run code depending on a condition being true or false.

No related posts.

About Daniel Smith

I am the boss around here, if you need anything then send me a message :))

Popular Content & Keywords

add update delete in php,depositfiles hack,warning: mail() [function mail]: smtp server response: 554 the message was rejected because it contains prohibited virus or spam content in,rails vs php performance,add update delete records from sql server using php,php define variable,php add update delete,php tutorial deutsch,warning: mail() [function mail]: smtp server response: 554 the message was rejected because it contains prohibited virus or spam content,tutorial create contact form in dreamweaver php,ruby on rails vs php 2010,php tutorial // user registration w/ sql,,send emails with a web form: php scripting,php tutorial - register form insert into database
Comments (12) Trackbacks (0)
  1. I’m trying to figure out how to make a “Logout” link appear for a only a user in session. But I also want to make a “Login” link in the same exact spot for a person who’s not logged in. How would I use the “if statement” for that? Any help would be appreciated. Thank you

  2. How do you ask for the users imput????

  3. Nice ;)

  4. Wow, this is really easy and simple. It’s also extremely easy to understand. Well done, this is the clearest and most use full series of PHP tutorials. I have come across. Thank you, I’ll recommend this set of tutorials to anyone interested in anything PHP related!

  5. this is just like pawn

  6. this is nice and really simple, i know it but rly good to revise

  7. WRONG! = means “assign”. == means “equals”. Don’t believe his lies.

  8. Lies? I explained that == means equals, or as I put it “is equal to”. What did I do wrong here?

  9. Sorry bout my english; Bad day.

    Many mathmaticilans whom you may end up working with, if your programming-skills takes you good places, will get real mad at you, if you talk with ‘em about how $i can be equal to $i + $i, ’cause, that’s impossible.

    I am not a math guy, but it’s just good practice to say “i ASSIGN the value of $i + $i to $i”, instead, and leave the word ‘equal’ completely out of it.

  10. I guess
    daniel1982 got confused with some other language..what you said is right….thanks for the tutorials…

  11. go to mahaphpcode site and play with php

  12. Why you do not said anythihg about !=, ===, and other?


Leave a comment

You must be logged in to post a comment.

No trackbacks yet.

Powered by WordPress Lab