Jump to content

NabillaGustiviana

Members
  • Posts

    2
  • Joined

  • Last visited

NabillaGustiviana's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. I have system as below:When I click the 'start' button, the time when I clicked it will be saved in database. And also when I click the 'stop' button.I used this syntax to insert to database:$query = "INSERT INTO down_his VALUES('','$id_machine','$machine_name','$machine_status',now())";I want to make this information in one row. Is it posibble?So when I click the 'start' button, It will just store the information about the time when it start, but the 'stop' column will be blank. And when I click the 'stop' button, it will be completing the first data. Not separately in 2 rows, just like my table now.
  2. I want to make machine monitoring system between 2 PC. This system indicate machine ON or OFF. In the page in 1st PC, there is button to switch machine between ON or OFF. And the 2nd PC show the condition from 1st PC (there are no button to switch machine's condition, it's just display). My question, how to make the 2nd PC get the real time action from 1st PC? Is it possible?Anyone have suggestion?Thank You
×
×
  • Create New...