Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please finish PHP code. I completed the fist portion here you add the state names. I am having trouble implementing the SELECT state_abbr statment at

Please finish PHP code. I completed the fist portion here you add the state names. I am having trouble implementing the SELECT state_abbr statment at the very bottom of the instuctions. My PHP code is also below.

image text in transcribedimage text in transcribed

MY CODE:

Lab7, Part1

Lab 7 Part 1

Homepage

From databases to forms and More databases to forms

'; echo 'Database query retrieved zero rows.'; } while ($row = mysqli_fetch_assoc($dbResult)) { $state_abbr = $row['state_abbr']; $state_name = $row['state_name']; } ?>

'; } while ($row = mysqli_fetch_assoc($dbResult)) { $tool_item_no = $row['tool_item_no']; $tool_name = $row['tool_name']; $tool_price = $row['tool_price']; $tool_weight = $row['tool_weight']; echo ""; echo ""; echo ""; echo ""; } ?>
ToolPriceWeightQuantity
'; echo 'Database query retrieved zero rows.
$tool_item_no$tool_name$tool_price$tool_weight

Crescent Wrench: C-Clamp: Saw: First name: Last name: Shipping Address:

Zip Code:

Payment Type:
Visa Mastercard American Express

Part 1; From databases to forms: The database is named weblab and the table of states is named state t. The table was created as follows: CREATE TABLE state t state abbr char (2) PRIMARY KEY, state name char (20), state zone integer) i Display the state name in the drop-down, but transmit the state abbreviation through the form. You do this by using a value attribute on the Koption> element The form area for State will look something like the following. Of course, you have to build this using PHP, and not just type it in.

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

Step: 3

blur-text-image

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

Focus On Geodatabases In ArcGIS Pro

Authors: David W. Allen

1st Edition

1589484452, 978-1589484450

More Books

Students also viewed these Databases questions

Question

How do Dimensional Database Models differ from Relational Models?

Answered: 1 week ago

Question

What type of processing do Relational Databases support?

Answered: 1 week ago

Question

Describe several aggregation operators.

Answered: 1 week ago