This is a discussion on radio group and insert within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi , I have 6 cells in a table. I want data to be inserted only in 1 cell when inserting ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi ,
I have 6 cells in a table. I want data to be inserted only in 1 cell when inserting a new row. The data will be user name from session id. I want to show the cell name as radio group or drop down menu. This is because the user enters the new row. But I can't think of how to make mysql insert statement so that it inserts user name in one cell and null for other 5. May be if (this) //do this type of INSERT elseif (this) //do this type of insert INSERT Thats what I can think of. But I have never done it for radio group. Any lights on this please? Ashok. |
|
|||
|
solved.
"Ashok" <non2@mail.ru> wrote in message news:d7fqe6$2evh$1@gavrilo.mtu.ru... > Hi , > I have 6 cells in a table. I want data to be inserted only in 1 cell when > inserting a new row. The data will be user name from session id. I want to > show the cell name as radio group or drop down menu. > This is because the user enters the new row. > But I can't think of how to make mysql insert statement so that it inserts > user name in one cell and null for other 5. > May be > if (this) > //do this type of INSERT > elseif (this) > //do this type of insert INSERT > Thats what I can think of. > But I have never done it for radio group. > Any lights on this please? > > Ashok. > > |