I'm using CURL to pass an xml string created from the results of a query.
The string is created as follows:
while ($row = mysqli_fetch_assoc($data_to_insert)) {$data[ ] = $row;}
foreach($data as $datapiece)
{
$data = data.'
<field>
<id>'.$datapiece["id"].'</id>
<value>'.$datapiece["value"].'</value>
Why am I getting Array to string conversion notice?
$string? And couldprint_r($datapiece);please.