Hey everyone,
PHP and MYSQL newbie here.....can really use your help right now. I implemented a Submodal into my script, and finally got it to submit "User Notes" into the database. Unfortunately with each new submission, the text that is submitted overwrites the previous submission. I was told to use CONCAT_WS to prevent that from happening...I have been trying for several hours on Dreamweaver to accomplish that but it's not working. Here is my code for that section...
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "lead_note_form")) {
$updateSQL = sprintf ("UPDATE Leads SET Notes = CONCAT_WS('\n', Notes, '$Notes') WHERE Id=%s",
GetSQLValueString($_POST['Notes'], "text"),
GetSQLValueString($_POST['Id'], "int"));
Please help, would really appreciate it!!! Thank you!!