%s: Connect failed: %s

",__FILE__,mysqli_connect_error()); exit(); } $array=array('select distinct `Title` from `movies`'); $query=implode("",$array); if ($stmt = $mysqli1->prepare($query)) { $stmt->execute(); $stmt->bind_result($title); while($stmt->fetch()) { $movieArray=explode(" ",$title); $movieIMDB=implode("+",$movieArray); printf("%s
",$movieIMDB,$title); } $stmt->close(); } $mysqli1->close(); ?>