saseow
Posts: 744
|
| Posted: 02/11/2005, 8:10 AM |
|
I need some help from some kind PHP guru.
I want to achieve the following and have no idea how to go about it using PHP and CCS.
When a user logs in, I need to check a MySQL table to see if that user has any records in the table using a field called user_id.If there are no records in the table for the particular user, I want to programmatically add 100 records for the user with several fields taken from two other tables and the records will, of course, include the session UserID.
I would also like to know how to loop through the 100 records at a later stage, summing a field that the user has filled in in the interim.
Any help or pointers will be hugely appreciated.
regards,
Trevor
|
 |
 |
aakici
Posts: 49
|
| Posted: 02/11/2005, 2:24 PM |
|
your record form data conenction must include a where statement that logged user id must equal to use_id field.
_________________
Regards,
M.Alpaslan AKICI |
 |
 |
|