Jump to content


Photo

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


  • Please log in to reply
No replies to this topic

#1 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 19 April 2006 - 10:23 PM

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

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')";


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.
Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users