Notify a new row entry

Please support our MS SQL advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2008
Posts: 9
Reputation: bvssam is an unknown quantity at this point 
Solved Threads: 0
bvssam bvssam is offline Offline
Newbie Poster

Notify a new row entry

 
0
  #1
Dec 30th, 2008
Hi Group ,

A small Query ,I need to know how can I notify a new row entry in a table.

to be more specific I have a table Users If at all a new users registers from web his details are stored in database.
i would like to know is there any way to knwo the new row entry.

If so please let me know.

Sam
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 276
Reputation: kanaku is on a distinguished road 
Solved Threads: 15
kanaku's Avatar
kanaku kanaku is offline Offline
Posting Whiz in Training

Re: Notify a new row entry

 
0
  #2
Dec 30th, 2008
Perhaps send an email to yourself when 1 row is updated after the adduser query?

  1. ... php code FOR query...
  2.  
  3. IF @@rowcount > 0
  4. ... php code FOR mailing the admin

Oh look, there's a daniweb thread on sendmail!
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 9
Reputation: bvssam is an unknown quantity at this point 
Solved Threads: 0
bvssam bvssam is offline Offline
Newbie Poster

Re: Notify a new row entry

 
0
  #3
Dec 30th, 2008
Well,

Thanks for the early reply

But my issue is slightly different say a user has registred ie.. a new row is updated in User table ,in the user table there is a feild Message I simply want the feild value ie.. message sent by user,should move to another table, when ever a new row is updated.
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: Notify a new row entry

 
0
  #4
Dec 30th, 2008
Use triggers
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 276
Reputation: kanaku is on a distinguished road 
Solved Threads: 15
kanaku's Avatar
kanaku kanaku is offline Offline
Posting Whiz in Training

Re: Notify a new row entry

 
0
  #5
Dec 30th, 2008
If you know ASP, you can save other daniweb members from idiots like me by helping out in this forum.

Visit this thread
if your username starts with one of the following letters: B D F H J L N P R T X Y Z.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the MS SQL Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC