Jump to content

how do you copy the whole field and pass it to another field


redarrow

Recommended Posts

Advance thank you.


I want to be able to let a user send another message to the database update them fields and copy the old info into another filed so that the old info can also be seen.

example

[code]
if (name || email || message ) {
query="update id,name,email,message from messages where name='$name' and email='$email'";
}

$query="insert into oldmessage (id,name,email,message)values('$name','$email','$message')";

[/code]

no session involved

So if a user posts a new message the database gets updated to message, and the oldmessage gets inserted to oldmessage.

Am i nearly there.
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.