what is the defrent between in $dbconnect

Discussion in 'PHP' started by matrex722, Nov 9, 2010.

  1. #1
    hi

    im new in php and i want to know what is the deffrent between



    and



    what does @ do ?
     
    matrex722, Nov 9, 2010 IP
  2. mikecampbell

    mikecampbell Peon

    Messages:
    26
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    @ just hides any warnings or errors that come from calling mysql_connect.
     
    mikecampbell, Nov 9, 2010 IP
  3. matrex722

    matrex722 Active Member

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    thank you so much
     
    matrex722, Nov 9, 2010 IP
  4. CreativeArmory

    CreativeArmory Peon

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    @ = Error suppression...which also means it will load a lot slower. Try to avoid using that.
     
    CreativeArmory, Nov 9, 2010 IP
  5. matrex722

    matrex722 Active Member

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #5
    you mean i must remove @ ?
     
    matrex722, Nov 10, 2010 IP
  6. CreativeArmory

    CreativeArmory Peon

    Messages:
    44
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You don't have to, but I would.
     
    CreativeArmory, Nov 10, 2010 IP
  7. xpertdev

    xpertdev Peon

    Messages:
    54
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    xpertdev, Nov 10, 2010 IP
  8. matrex722

    matrex722 Active Member

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #8
    thank you so much all
     
    matrex722, Nov 10, 2010 IP