dvayne Posted March 15, 2008 Share Posted March 15, 2008 how to check the value of row? any help would be appreciated... Link to comment https://forums.phpfreaks.com/topic/96251-checking-value-of-row/ Share on other sites More sharing options...
cunoodle2 Posted March 15, 2008 Share Posted March 15, 2008 Can you be more specific? mysql_insert_id() will return the id of the LAST row you did an insert into. Is this what you were looking for? Link to comment https://forums.phpfreaks.com/topic/96251-checking-value-of-row/#findComment-492705 Share on other sites More sharing options...
dvayne Posted March 15, 2008 Author Share Posted March 15, 2008 Can you be more specific? mysql_insert_id() will return the id of the LAST row you did an insert into. Is this what you were looking for? <input name="arch" type="checkbox" value="old">Archive<br> the value of the checkbox is inserted in database, and if its already checked before, the checkbox will not be displayed.. Link to comment https://forums.phpfreaks.com/topic/96251-checking-value-of-row/#findComment-492707 Share on other sites More sharing options...
cunoodle2 Posted March 15, 2008 Share Posted March 15, 2008 Still not totally getting what you are asking for. Please answer all of the following questions... 1. What exactly do you mean by "old or new?" 2. What determines if something is old or new? 3. Is this something that you are looking for after you have inserted, updated or deleted something? 4. What is this value going to be used for? Like in what context so that there may be a better way to address/call it. 5. Currently what is in your table? Is it empty or is there a bunch of items already there? The more specific the better. Link to comment https://forums.phpfreaks.com/topic/96251-checking-value-of-row/#findComment-492711 Share on other sites More sharing options...
dvayne Posted March 15, 2008 Author Share Posted March 15, 2008 Still not totally getting what you are asking for. Please answer all of the following questions... 1. What exactly do you mean by "old or new?" 2. What determines if something is old or new? 3. Is this something that you are looking for after you have inserted, updated or deleted something? 4. What is this value going to be used for? Like in what context so that there may be a better way to address/call it. 5. Currently what is in your table? Is it empty or is there a bunch of items already there? The more specific the better. the old or new is the status of the news... if you check the checkbox and then you submit, the status will become old i don't want to display the checkbox if its checked before because the status is old already... Link to comment https://forums.phpfreaks.com/topic/96251-checking-value-of-row/#findComment-492712 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.