Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
[email protected] webmail now available. Want one? Go here.
Cannot use outlook/hotmail/live here to register as they blocking our mail servers. #microsoftdeez
Obey the Epel!

Paste

Pasted as Java by registered user gunturps ( 4 years ago )
kursibus.php

<?php
	include 'connection.php';
	$id_bus=$_GET['id_bus'];
	$query = "SELECT * FROM bus WHERE id_bus=$id_bus"; //select table in database
    $sql = mysqli_query($con, $query);
    $arraydata = array();
    $data = mysqli_fetch_assoc($sql);
 
    echo json_encode($data);
?>

 

Revise this Paste

Your Name: Code Language: