Zipppy wrote: » Hi Without postings lots of code...for now.. I'm updating a MySQL table with PHP that has four fields, two ints and two varchars...all is good except in one of the varchar fields only the first two characters of data are saved... anyone ever hear of ought like this?
currentPage.EditItem = function(id) { if (confirm('Are you sure?')) { console.log("DetailPage :: edit"); var itemm = $("#itemm").val(); var amount = $("#amount").val(); var statuss = $("#statuss").val(); var Uid = localStorage.getItem("Uid"); if (itemm == "") { alert("Please enter item"); } else if (amount == "") { alert("Please enter amount"); } else if (statuss == "") { alert("Please enter status"); } else { $.ajax({ type:'POST', url:'http://www.mywebsite.com/edit.php', data:{'Uid':Uid,'itemm':itemm,'amount':amount,'statuss':statuss}, success: function(data) { alert("Edit item success"); window.location.href = "uploadtest.html" }, error: function() { alert("Edit user failure"); } }); }; } };
daymobrew wrote: » Can you post the details of the table and the columns e.g. are the varchar columns only 2 or 3 char long?