bodge
ayy lmao
- Oct 31, 2011
- 406
- 54
Hey Devbest, I need help with adding a PHP form that edits the MySQL table.
I want it to edit the "status column" the closest I can get is when I type something in and hit okay it makes a whole new user... :L
Can you help?
status = VARCHAR(32)
I want it to edit the "status column" the closest I can get is when I type something in and hit okay it makes a whole new user... :L
Can you help?
PHP:
<?php
$status = $_POST ['status'];
mysql_query("INSERT INTO users (status) VALUES ('$status')");
?>
HTML:
<form action="<?php $_SERVER['PHP_SELF']?>" method="post" class="status">
<input type="text" name="status" size="32" placeholder="Status"><span required>*</span>
<input type="submit" value="Okay" />
status = VARCHAR(32)