Jump to content

checking value of row


dvayne

Recommended Posts

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.