test



 

<?php echo$img; ?> test

{
$row = $result->fetch_assoc();
return $row[‘guid’];
}

}
function getProductName($mysqli, $id)
{
$sql=”SELECT `post_title` FROM `wp_posts` WHERE `ID` = ‘$id’;”;
$result = $mysqli->query($sql);

$images = [];

if ($result->num_rows !== 0)
{
$row = $result->fetch_assoc();
return $row[‘post_title’];
}

}
function emailFriend($email,$names,$id, $productName)
{
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,”http://clicksales.co.za/test/index.php”);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(array(‘name’ => $names,
’email’=>$email,
‘product’=> $productName,
‘link’=>”http://shoop.co.za/?p=”.$id)));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec ($ch);
curl_close ($ch);
if($server_output == “1”)
{

echo “

Success! Product has been promoted successfully!

“;
echo ” “;
echo “

Error! An error has occurred while promoting product. Please try again later!

“;
}
}
?>