Right now i can insert into a cell in my table from my website using the UPDATE call as follows:
$sql="UPDATE certnumbers SET owner='{$_SESSION['logname']}' WHERE id='$_POST[verinum]'";
I'm basically allowing the user to attach their loginname to a cell (owner) in a row identified by the id of the row.
I would ONLY like the user to add their name if the cell is blank, if its not blank and someone else has added their name already, it should give a message back to the user saying its already owned by someone else and NOT update.
Any help would be appreciated.










Bookmarks