Dumb MySql question

Daniel-MD

Regular Member
Joined
Dec 2, 2007
Messages
355
Reaction score
339
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
 
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
Code:
http://www.webmasterworld.com/php/3164496.htm
 
Thanks found the answer
 
Back
Top