Assignment4 PHP II
create a table our your demoserver a connection
with a host
use id instead of root and whatever database program will take my file and run it against your database
will create table for that database
how you get a table installed remotely
take the statement split it up and run it line by line
CREATE A STUDENTS TABLE STUDENT ID NAME ADDRESS CITY STATE MAJOR GPA
FORMAT OF MY TABLE NAME IS GOING TO BE FIRST INITIAL LAST NAME STUDENTTABLE
DRIDDLESPURSTUDENTTABLE
WHEN TESTING CREATING WHATEVER JUST CREATE IT WITH THIS NAME TO BEGIN WITH THAT WAY WHEN YOU DUMP IT , ITS GOING TO PULL THAT NAME A NIQUE NAME SO THAT WHEN WE INSTALL IT ON YOUR SERVER IT HAS A UNIQUE NAME
WRITE A PROGRAM THAT IS GOING TO DISPLAY THE INFO THAT IS IN THAT TABLE
AT THAT POINT
ABILITY TO DO SOME SORT OF UPDATE TO THAT PARTICULAR TABLE
MAYBE FOR EXAMPLE YOU DO DO A DROPDOWN BOX WHERE YOU GIVE THEM THE STUDENT ID THEY SELECT IT AND IT GIVES THEM THE ABILITY TO CHANGE SOMETHING FOR THAT STUDENT.
In plain English:
Ok so we create a page kinda like assignment 2 the exception being the information is populated by SQL instead of XML. On that page would be some kind of radio button that when selected brings up an edit page. When then information is edited and the select button on that page is clicked it brings up the first page showing the edited version of the information.
Php is well known for its seamless database integration,Once you establish the connection, you can send your SQl commands to the database and receive the results as data you can use in your PHP program. This is not hard to accomplish if you learn the basic tools to accomplish the task.
- Get a connection to a MYSql database from within PHP
- Use a particular database
- Parse the query results
- Check for data errors
- build HTML output from data results
//make the database connection
$