I want to insert a persons status and username into a database. No error shows up, but when I click submit, either the action runs or nothing happens, or the page just refershes. Could anybody help me debug this code? Thanks!
Well the first obvious problem is that your missing quotes around the status string.
$upSQL = "INSERT INTO sq_status (UID, Status) VALUES ($id,'$status')";
I’m also about 99% certain that the label element can’t contain block elements. So your textarea should reside outside the label but that is HTML thing.
Here i want to tell you 3 errors!
1,you design your database table,table id better chose auto_increment,and insert into table not insert table id.
2,you’ll insert into string in php,you should add quote .example:insert into table(name) values("$name")
3,In your form,your textarea should reside outside the label.