Titre du sujet : Re: TDMPicture par Franck0768 sur 24/01/2013 23:48:20
Salut Venom,
Citation :Venom a écrit : Je ne comprends pas franck, la requête et correcte non ? Je me suis également trompé dans mon analyse. L'édit du post #79 est faut. Il faut inverser `photo_title` et `photo_desc` dans le select d'extgallery_publicphoto. Ce qui donne:
$import['query'] = "INSERT INTO ".$xoopsDB->prefix("tdmpicture_file")." ( `file_id`, `file_cat`, `file_file`,
`file_title`, `file_text`, `file_type`, `file_display`, `file_hits`, `file_dl`, `file_votes`,
`file_counts`, `file_indate`, `file_uid`, `file_size`, `file_res_x`, `file_res_y`, `file_comments`, `file_ext`)
SELECT `photo_id`, `cat_id` , `photo_name`, `photo_desc`, `photo_title`, NULL, `photo_approved`, `photo_hits`, NULL,
`photo_nbrating`, `photo_rating`, `photo_date`, `uid`, `photo_size`, `photo_res_x` , `photo_res_y`, `photo_comment`, 2 FROM ".$xoopsDB->prefix("extgallery_publicphoto")."";
A+ Franck
|