Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Having these examples please create: Pull book information from a file, create a two-dimensional Associative Array from the file, accept information about a book from

Having these examples please create: Pull book information from a file, create a two-dimensional Associative Array from the file, accept information about a book from an HTML form, add the information to the Associative Array, and store the information. Before you can read from a file there need to be associative JSON records in the file. Add the code to save the array into the file first. Then run the program. Verify that the information was saved properly in the file. Then add code to read from the file.

Please do not send me the solution that is already in Chegg it does not help me. Please use the examples below. I need something similar.

Example 3.0

Library System

ISBN :
Title :
Description:

Example 3.1

Example 3.2

Example 3.3

try { $mysqli = new mysqli("localhostorwebsite", "userid", "password", "database"); $query = "SELECT * FROM customers"; $result = $mysqli->query($query); $customer_record = $result->fetch_all(MYSQLI_ASSOC); $customer = filter_input_array(INPUT_POST); $customer_info = validate_array( $customer["customer_record"]); array_push($customer_record, $customer_info); print_r($customer_record); $query = INSERT INTO customers(first_name, last_name, address, city, state, zip_code) VALUES (; $query .= $customer_info[first_name] . , . $customer_info[last_name] . ,; $query .= $customer_info[address] . , . $customer_info[city] . , . $customer_info[state] ; $query . = , . $customer_info[zip_code] . ); $result = $mysqli->query($query); $mysqli->close(); } catch(Exception $e) {

?>

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions