Q:

PHP and Mysqli query returning errors?

I am trying to insert information that I have in an array into a MySQL table.  Here is my code: 
include "db_conx.php";
$transactionid = array(); //stores our output

So first we grab the results from the url, and then we use preg_match_all to find the tags we are looking for:
$url = file_get_contents("https://blockchain.info/address/1CRBDxjEQV317Q9DZZ13kVE23d2iY9Brqg?filter=2");

preg_match_all('#<a class="hash-link" href="/tx/([a-zA-Z0-9]*)">([a-zA-Z0-9]*)</a>#Uis', $url, $matches);

Grabs each match from the expression above^ :
foreach($matches[0] as $transactionids){
$transactionid[] = "<div class='transactionids' >".$transactionids."</div>";
}

Prepare the database for results:
$iresult = mysqli_query("INSERT INTO bitcoin (transaction) VALUES ("$transactionid[$i]")");

Then this is my loop which I use to record the results:
for($i = 0; $i < count($transactionid); $i++){
$iresult .= $transactionid[$i];
}

But it is returning this error: 
Parse error: syntax error, unexpected '$transactionid' on line 21

EDIT: so after reading the three answers below it now inserts a blank row instead of the information.

A:

I think you have to use something like this :-
   $con=mysqli_connect("localhost","my_user","my_password","my_db");
$iresult = mysqli_query($con, "INSERT INTO bitcoin (transaction) VALUES (".$transactionid[$i].")");

