Hi, I have a nex problem !
When a user update his resume it duplicate it in my new table jos_js_jos_minicv.
So I tried this code, always in function storeResume(), but it doesn't work.
//verification si le cv existe deja dans la table jos_js_job_minicv
$resultat_minicv = "SELECT * FROM #__js_job_minicv WHERE id_candidat='$id_candidat' ";
$resultat_minicv = "SELECT COUNT(fabrik_internal_id) FROM ".$db->nameQuote('#__js_job_minicv')." WHERE id_candidat = ".$id_candidat;
$db->setQuery($resultat_minicv);
$total_minicv = $db->loadResult();
echo $total_minicv;
si cv vide insertion des informations
if ($total_minicv > 0){
//mise a jour de la ligne dans la table jos_js_job_minicv
//suppression du CV
$supprimer_minicv = "DELETE FROM ".$db->nameQuote('#__js_job_minicv')." WHERE id_candidat=$id_candidat AND profil_candidat=$profil_candidat ";
$db->setQuery($supprimer_minicv);
}else{
//insertion des donnees dans la table jos_js_job_minicv
Could you help me please ?
Best regards