Hi Guys,<div><br></div><div>I am making another module for Voicemail. I have three fields in a POST form that have to be connected together to make it a single 10 digit number but there is something wrong in my syntax probably.</div>
<div><br></div><div><br></div><div><div>$npaa = "('$_POST[anpa]')";</div><div>$nxxa = "('$_POST[anxx]')";</div><div>$blocka = "('$_POST[ablock]')";</div><div><br></div>
<div><b>$grplist = $npaa.$nxxa.$blocka;</b></div></div><div><br></div><div><div>$sql="INSERT INTO findmefollow(grpnum, strategy, grptime, grppre, grplist, annmsg_id, postdest, dring, needsconf, remotealert_id, toolate_id, ringing, pre_ring) VALUES ('$_POST[grpnum]','ringall','$_POST[grptime]','$_POST[grppre]',$grplist,'0','$_POST[postdest]','','','0','0','Ring','$_POST[pre_ring]')";</div>
</div><div><br></div><div><br></div><div>It seems that $grplist is the problem. Can someone please point what is wrong?</div><div><br></div><div>Error:</div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '('333')('4444'),'0','ext-local,vmb2000,1','','','0','0','Ring','0')' at line 3</span></div>
<div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; "><br></span></div><div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">Thanks,</span></div>
<div><span class="Apple-style-span" style="font-family: 'Times New Roman'; font-size: medium; ">Bruce</span></div>