1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
$sql = mysql_query("SELECT * FROM jos_annonces_beemploi");
$row = mysql_num_rows($sql);
echo "$row lignes\n";
$i = 1 ;
while($row = mysql_fetch_array($sql))
{
echo $i;
$requete2 = mysql_query("REPLACE INTO test (uid,
companyid,
title,
jobcategory,
jobtype,
jobstatus,
jobsalaryrange,
description,
qualifications,
country,
state,
county,
city,
noofjobs,
heighestfinisheducation,
created,
experience,
sendemail,
startpublishing,
stoppublishing
)
VALUES ('".$row[idPersonneBeEmploi]."',
'".$row[idSocieteBeEmploi]."',
'".$row[titre_annonce]."',
'".$row[idJobCategoryBeEmploi]."',
'".$row[idTypeContrat]."',
'".$row[idStatutAnnonce]."',
'".$row[idTrancheSalaireBeEmploi]."',
'".$row[notre_societe]."',
'".$row[TexteCompetences]."',
'FR',
'".$row[idRegionBeEmploi]."',
'".$row[departement]."',
'".$row[annonce_localisation]."',
'".$row[ref_annonce]."',
'".$row[idNiveauEtudeBeEmploi]."',
'".$row[date_parution]."',
'".$row[idExperienceBeEmploi]."',
'1',
'".$row[date_validation_publication_annonce]."',
'".$row[date_butoire_demande_client]."'
)"
);
$i++;
} |
Partager