$setting=array("username"=>"root","password"=>"123456","host"=>"127.0.0.1","db"=>"dialer");
$link = mysqli_connect($setting["host"],$setting["username"],$setting["password"],$setting["db"]);
$query= "SELECT * from audio ";
if ($result = mysqli_query($link, $query)) {
while ($row = mysqli_fetch_assoc($result)) {
echo "$row[audio_id]\n";
}
}
else {
printf(" failed: %s\n", mysqli_error($link));
}
/* close connection */
mysqli_close($link);
?>
No hay comentarios:
Publicar un comentario