dvayne Posted March 15, 2008 Share Posted March 15, 2008 how to check the value of row? any help would be appreciated... Quote Link to comment 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? Quote Link to comment 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.. Quote Link to comment 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. Quote Link to comment 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.