Question: Why wont my update form on my php page update mySQL Database and php code is below for both my webpage and update file. mysql>

Why wont my update form on my php page update mySQL Database and php code is below for both my webpage and update file.

mysql> select * from teams; +---------+---------------+--------------+-------------+---------------------+ | Team_ID | Team_Name | Team_Country | Team_Titles | Team_Boss | +---------+---------------+--------------+-------------+---------------------+ | 1 | a | England | 10 | Mr J | | 2 | b | Ireland | 18 | Mr K | | 3 | c | USA | 12 | Mr Z | | 4 | d | Italy | 36 | Mr A | | 5 | e | France | 19 | Mr P | +---------+---------------+--------------+-------------+---------------------+

WEBPAGE CODE FILE BELOW

teams

Team_ID Name Country Titles Boss

Enter A New Team

ID: Name: Country Team : League Titles: Boss:

update_teams.PHP (CODE IS BELOW)

$Team_ID=$_POST['ID']; $Team_Name=$_POST['Name']; $Team_Country=$_POST['Country Team']; $Team_Titles=$_POST['League Titles]; $Team_Boss=$_POST['Boss];

mysqli_query($conn,"INSERT into Teams VALUES ('$Team_ID','$Team_Name','$Team_Country','$Team_Titles','$Team_Boss' )"); header('Location: Teams.php'); ?>

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!