Hi Everyone,
I am very new at PHP and really need some help with this code. All I need to do is to get the image to display, when I call the function. Can someone please help me call this function? Here is the code below:
<?php
function generateQR($url, $width = 150, $height = 150) {
$url = urlencode($url);
$image = '<img src="http://chart.apis.google.com/chart?chs='.$width.'x'.$height.'&cht=qr&chl='.$url.'" alt="QR code" width="'.$width.'" height="'.$height.'"/>';
return $image;
}
?>
Thank you all very much!!!