Troubleshooting error when creating array from database values
<p>Can someone see what I'm doing wrong with this php array? I"m trying to create a dynamic array but somehow it not working and get an Server internal error when attempting to access it from a browser</p>

<pre><code>$index = 0;
$columnIndex = 0

while($row = mysqli_fetch_array($result, MYSQL_NUM))
{
  $test = array();
  $test[$arrayIndex] = $row[$columnIndex];
  $coumnIndex = 1;

  if(is_string($row[$number]))
  { 
    preg_match("/(?:\d+\.)?(?:\s*)?$stop?(?:\s*)?(.*):(.*)",{$row[$columnIndex]},$match1);     
    $test[$index] = '&lt;p&gt; &lt;strong&gt; . $match1[1] . &lt;/strong&gt; . $match1[2] . &lt;/p&gt;';
  }      

  ++$arrayIndex; 
  ++$columnIndex;   
}

$jsonData = json_encode($test);
echo $jsonData;
</code></pre>
