I'm working on a script which help me to get informations about new books from a website. I have 8 informations (title, author, editor...) to insert, and on each page, there is ten or less books to scan.
The final step is the query, but I have some problems to understand multidimensionnal array.
My prepare syntax :
$req = $db->prepare('INSERT INTO listing(id, Ref, Nom, Auteur, Editeur, Prix, EAN, Small_desc, Dispo) VALUES(\'\', :Ref, :Nom, :Auteur, :Editeur, :Prix, :EAN, :Small_desc, :Dispo)');
And the query... I've made the test with the first line. That's works ! But I Wish to insert all the results.
$req->execute(array('Ref'=>$sortie4[1][0], 'Nom'=>$sortie[1][0], 'Auteur'=>$sortie2[1][0], 'Editeur'=>$sortie3[1][0], 'Prix'=>$sortie6[1][0], 'EAN'=>$sortie5[1][0], 'Small_desc'=>$sortie7[1][0], 'Dispo'=>$sortie8[1][0]));
I've found some examples about multidimensionnal array, but I don't understand how I could use them.
Thanks for any help