J
|
Jane 2/12/2007 |
Kenny, function BeforeAdd(&$values) { //** Insert a record into another table **** global $conn; $strSQLQuery = "select distinct ID_game from elo_game"; $rsQuery = db_query($strSQLQuery,$conn); while ($data=db_fetch_array($rsQuery)) { $strSQLInsert = "insert into elo_values values (NULL,".$values["ID_player"].",".$values["ID_game"].",".$values["ID_country"].",1000)"; db_exec($strSQLInsert,$conn); } return true; } |
K
|
kenny_robb author 2/12/2007 |
I guessed that myself hence why I am trying to do it the another way. |