6
You can write a SQL script and run it from PHPAdmin:
Here's an example of the SQL script: Remember that the file name (the 2nd field) is limited to 30 characters.
INSERT INTO `xoops_avatar` VALUES (001,www.xoops.net.br-001.jpg,Avatar-001,image/jpeg,1000000000,1,1,S,);
INSERT INTO `xoops_avatar` VALUES (002,www.xoops.net.br-002.jpg,Avatar-002,image/jpeg,1000000000,1,1,S,);
INSERT INTO `xoops_avatar` VALUES (003,www.xoops.net.br-003.jpg,Avatar-003,image/jpeg,1000000000,1,1,S,);
INSERT INTO `xoops_avatar` VALUES (004,www.xoops.net.br-004.jpg,Avatar-004,image/jpeg,1000000000,1,1,S,);
INSERT INTO `xoops_avatar` VALUES (005,www.xoops.net.br-005.jpg,Avatar-005,image/jpeg,1000000000,1,1,S,);
To run it in PHPAdmin - do the following:
1. Make sure that all avatars are in the UPLOAD directory
2. Log into website as Web Administrator
3. Go to Administration Menu
4. Go to PHP myadmin module
5. Expand the Database
6. Select xoops_avatar Table
7. Select the SQL tab
8. Click on the "Insert data from a textfile into table" link
9. Browse to find the SQL file you created
10. Check the Replace box
11. Change the Fields terminated by to: ,
12. Clear the Fields enclosed by field
13. Clear the Fields escaped by field
14. Change the Lines terminated by to: ;
15. Click the Submit button
16. Check to make sure it worked.