1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Dumb MySql question

Discussion in 'PHP & Perl' started by MoneyMafia, Aug 10, 2008.

  1. MoneyMafia

    MoneyMafia Regular Member

    Joined:
    Dec 2, 2007
    Messages:
    290
    Likes Received:
    310
    Tried to find the answer on Google but no luck as google ignore {}

    So .why programmers use {} in building sql strings like this one:

    PHP:
    mysql_query"insert into tblaffiliatepayments(naffiliate_id,suserforename, susersurname, suseremail, nmemberjoindate, nnextpaymentdate, ncommission,ndate, sitemname) values('".$afid."','{$findUser->sForename}','{$findUser->sSurname}','{$findUser->sEmail}','{$findUser->nJoinDate}','{$findUser->nDateExpires}','{$comm}','{$today}', '{$chkPayPlan->sDescription}')" );
    Thanks
     
  2. oldenstylehats

    oldenstylehats Elite Member Premium Member

    Joined:
    Apr 10, 2008
    Messages:
    1,893
    Likes Received:
    1,196
    Code:
    http://www.webmasterworld.com/php/3164496.htm
     
    • Thanks Thanks x 1
  3. MoneyMafia

    MoneyMafia Regular Member

    Joined:
    Dec 2, 2007
    Messages:
    290
    Likes Received:
    310
    Thanks found the answer