how is this variable can be done ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fuchsia555
    New Member
    • Dec 2009
    • 56

    how is this variable can be done ?

    hi

    example

    $cgal['username']

    if( ) {

    ............... ...........;
    } else
    ............... ......... ;

    to to make that if the ( username = text ) make the code working ?
  • Dheeraj Joshi
    Recognized Expert Top Contributor
    • Jul 2009
    • 1129

    #2
    I am not clear about the problem.? What exactly is the problem you are facing.?

    You want something like this.....

    Code:
    $text = "some name";
    if($cgal['username'] == $text)
    {
    // Do stuff
    }
    else
    {
    // Don't do stuffs
    }

    Comment

    • fuchsia555
      New Member
      • Dec 2009
      • 56

      #3
      yes exactly Mr dheerajjoshim , Thanks so much , seems it's easy for others but that's because i'm beginner


      i like this forum

      Comment

      • Dheeraj Joshi
        Recognized Expert Top Contributor
        • Jul 2009
        • 1129

        #4
        So you solved it.?

        Happy to help.... . .....

        Regards
        Dheeraj Joshi

        Comment

        • fuchsia555
          New Member
          • Dec 2009
          • 56

          #5
          yes it solved Thanks alot dear

          Comment

          • Dheeraj Joshi
            Recognized Expert Top Contributor
            • Jul 2009
            • 1129

            #6
            Good to know...

            Regards
            Dheeraj Joshi

            Comment

            Working...