¿Cómo vincular un número arbitrario de valores a una declaración preparada en mysqli?

Realmente me gustaría que alguien se tomara un poco de tiempo y revisara mi código. Estoy analizando el contenido de algunas noticias y puedo insertar el análisis inicial en mi base de datos que contiene la URL de las noticias y el título. Me gustaría expandirlo más, pasar cada enlace de artículo y analizar el contenido del artículo e incluirlo en mi base de datos. El análisis inicial funciona perfectamente así:

<?php
include_once ('connect_to_mysql.php');
include_once ('simple_html_dom.php');
$html = file_get_html('http://basket-planet.com/ru/');
$main = $html->find('div[class=mainBlock]', 0);
  $items = array();
  foreach ($main->find('a') as $m){
    $items[] = '("'.mysql_real_escape_string($m->plaintext).'",
                "'.mysql_real_escape_string($m->href).'")';
  }
$reverse = array_reverse($items);
mysql_query ("INSERT IGNORE INTO basket_news (article, link) VALUES 
             ".(implode(',', $reverse))."");
?>

Como puedes ver, estoy usandoPHP Simple HTML DOM Parser. Para expandir, estoy tratando de usar la declaración mysqli donde puedo enlazar los parámetros para que todas las etiquetas html se inserten en mi base de datos. He hecho esto antes con el análisis de XML. El problema es que no sé cómo enlazar la matriz, y ver si mi código es correcto, si funcionará de esta manera ... Aquí está el código completo:

<?php
$mysqli = new mysqli("localhost", "root", "", "test");
$mysqli->query("SET NAMES 'utf8'");
include_once ('simple_html_dom.php');
$html = file_get_html('http://basket-planet.com/ru/');
//find main news
$main = $html->find('div[class=mainBlock]', 0);
$items = array();
  foreach ($main->find('a') as $m){
    $h = file_get_html('http://www.basket-planet.com'.$m->href.'');
    $article = $h->find('div[class=newsItem]');
    //convert to string to be able to modify content
    $a = str_get_html(implode("\n", (array)$article));
      if(isset($a->find('img'))){
        foreach ($a->find('img') as $img){
          $img->outertext = '';}} //get rid of images
      if(isset($a->find('a'))){
        foreach ($a->find('a') as $link){
          $link->href = 'javascript:;';
          $link->target = '';}} //get rid of any javascript
      if(isset($a->find('iframe'))){
        foreach ($a->find ('iframe') as $frame){
          $frame->outertext = '';}} //get rid of iframes
     @$a->find('object', 0)->outertext = '';
     @$a->find('object', 1)->outertext = '';
     //modify some more to retrieve only text content
     //put entire content into a div (will if statements work here???)
     $text_content = '<div>'.$a.'<br>'.
       ($a->find('object', 0)->data > 0 ? '<a target="_blank" href="'.$a->find('object', 0)->data.'">Play Video</a>&nbsp;&nbsp;')
       ($a->find('object', 1)->data > 0 ? '<a target="_blank" href="'.$a->find('object', 1)->data.'">Play Video</a>&nbsp;&nbsp;')
       ($a->find('iframe[src*=youtube]', 0)->src > 0 ? '<a target="_blank" href="'.$a->find('iframe', 0)->src.'">Play Video</a>&nbsp;&nbsp;')
       //couple more checks to see if video links are present
    .'</div>';
$items[] = '("'.$m->plaintext.'","'.$m->href.'","'.$text_content.'")';
}
//reverse the array so the latest items have the last id
$reverse = array_reverse($items);
$stmt = $mysqli->prepare ("INSERT IGNORE INTO test_news (article, link, text_cont) VALUES (?,?,?)");
$stmt->bind_param ???; //(implode(',', $reverse));
$stmt->execute();
$stmt->close();
?>

Así que la lógica es para cada href de un artículo encontrado, lo paso para analizar el contenido y estoy tratando de agregarlo a la matriz. Probablemente tengo un montón de errores pero no puedo probarlo todavía porque no sé cómo enlazarlo para ver si funciona. Y tampoco estoy seguro de poder hacer las declaraciones if dentro de $ text_content div ... lo que significa mostrar "Reproducir video" si existen. Así que, por favor, si alguien puede dedicar tiempo a trabajar conmigo, realmente lo apreciaría.

ACTUALIZACIÓN: se cambiaron las declaraciones if a operadores de comparación en $ text_content div.

Respuestas a la pregunta(1)

Su respuesta a la pregunta