1 / 9

Php Scrip to Add /Update MySQL Database

Php Scrip to Add /Update MySQL Database. Config file MySQL Username MySQL IP MySQL Password MySQK Database. Login. Table name. Field name. If warehouse_user . warehouse = Yes then load warehouse (GUI) If warehouse_user . warehouse = No then load Site (GUI). Username Password.

ewan
Download Presentation

Php Scrip to Add /Update MySQL Database

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Php Scrip to Add /Update MySQL Database Config file MySQL Username MySQL IP MySQL Password MySQK Database

  2. Login Table name Field name If warehouse_user.warehouse = Yes then load warehouse (GUI) If warehouse_user.warehouse = No then load Site (GUI) Username Password If ok then check warehouse field To select the correct GUI

  3. Warehouse GUI Browse to XLS file Display the Asset Numbers in the file Insert All the Asset in to Table Asset with some other fields Value (*)See next slide Display a message xyz asset has been added Insert date & time, Username, IP Address, Number of Assets to Table warehouse_log END

  4. The following fields will be default for all the assets AMTR = “Yes” AMTR_Status = “0” Item_Type = “3” AMTR_Exception = “No” Room = “Not Set” Original_Room “Not Set” Status = “In-Use” Status_Date = Now() Category = “Not Set” Type = “Not Set” Network_Internet = “Yes” This_Year_Budget = “Yes” Warehouse = “1” These fields will not be listed, for this GUI just insert them in the background

  5. Welcome: Logged in username Click upload to browse to xls file Total Number of Asset Added: xyz Load the data to the GUI Click Add Button to Insert the new records To Asset Table With the fields in slide 3

  6. Site GUI Login Browse to XLS file and load the data Display the data in a grid See next slide

  7. List All the Asset_Number where warehouse = “1” AMTR Status= Drop down linked to table AMTR_Status linked field = ID, Displayed field = Name Userid should be the userid of the logged in user automatically User can not change it read only AMTR Drop down list with Yes or No Type drop down linked to Table Category Field Type Type Depends on Category update button AMTR Exception Drop down list with Yes or No Category drop down linked to category table field name = Category User will Type the room number User will Type or Select from Drop menu then click on SAVE button See next slide

  8. Welcome: Logged inusername Click upload to browse to xls file Load the data to the GUI Allow User to Select from the drop menu or Type to update the fields For each record listed UserID must be equal to the logged in Userid and read only (user can not edit that field) Update button will save the data in the grid Set warehouse = 0 for every record in the grid Set updated_By = Logged In Username for every record in the grid Set Updated_on = now() for every record in the grid Set Updated_By_IP = IP Address for every record in the grid Set Updated_By_hostname = Hostname for every record in the grid

  9. I will send you the database (Dump file) if you are the winner Please let me know if you have any questions

More Related