View Single Post
  #2 (permalink)  
Old Jan 31st, 2008, 05:05
JustinStudios's Avatar
JustinStudios JustinStudios is offline
SuperMember

SuperMember
Join Date: Mar 2007
Location: USA
Posts: 406
Blog Entries: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to JustinStudios
Re: Foreign Key references some

Alex, I actually did this with PHP... Not 100% sure if it is possible with just a SQL statement.

What I did was I selected the count from the table I wanted and then saved that to a variable, then I added that to the corresponding row in another table. So I used 2 SQL statements to do it really, just used PHP to hold the variable.
Reply With Quote