<?php
if (!$connection) {
die('Could not connect: ' . mysql_error());
}
$urlinput=mysqli_real_escape_string($connection, $_POST['url']);
$id=rand(10000,99999);
$shorturl=base_convert($id,20,36);
$link = "https://goo.gl/$shorturl";
$sql = "insert into shortenedurls (id, url, shortened, uid) values ('$id', '$urlinput', '$shorturl', '$idnew')";
mysqli_query($connection, $sql);
echo "<input type='text' class='txt-box' value='https://goo.gl/$shorturl' readonly />";
mysqli_close($connection);
?>
i tried to create a link shortner but when i check on the url its not working can any one let me know how do i integrate it with google please