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
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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.