Dumb MySql question

Discussion in 'PHP & Perl' started by Daniel-MD, Aug 10, 2008.

  1. Daniel-MD

    Daniel-MD Jr. VIP Jr. VIP

    Joined:
    Dec 2, 2007
    Messages:
    319
    Likes Received:
    313
    Gender:
    Male
    Location:
    London
    Home Page:
    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,892
    Likes Received:
    1,196
    Code:
    http://www.webmasterworld.com/php/3164496.htm
     
    • Thanks Thanks x 1
  3. Daniel-MD

    Daniel-MD Jr. VIP Jr. VIP

    Joined:
    Dec 2, 2007
    Messages:
    319
    Likes Received:
    313
    Gender:
    Male
    Location:
    London
    Home Page:
    Thanks found the answer