• 0
  • Contact Me: alexbashy9001@gmail.com

IT Series and Show

Serie #2

CODE FROM VIDEO Hosting – Interserver Code from file conn.php <?php define(‘host’, ‘localhost’);define(‘name’, ‘your_name_user’);define(‘pass’, ‘your_password_user’);define(‘dbase’, ‘your_name_data_base’); $conn = mysqli_connect(host, name, pass, dbase) or die (“Unable”); ?> Code from file getCategoriesProducts.php <?php require_once ‘conn.php’ ; $sql = “SELECT * FROM categoryProducts”;$res = mysqli_query($conn, $sql); $response = array(); while($row = mysqli_fetch_assoc($res)) { array_push($response,array(‘id’ =>$row[‘id’], ‘nameCategory’ =>$row[‘nameCategory’])); }…