replace input field with data from mysql php

  • sarahaziz
  • Born
  • Born
  • sarahaziz
  • Posts: 1

Post 3+ Months Ago

Hello Gurus I created this layout of successive text input fields, 1- Enter data into empty fields 2- Click on button which submits to a php page that updates into database

Now the problem is that i want when i return to the main page again the empty field is replaced with data just added but there are still other empty fields to enter new data. How can i establish that?

Thanks in advance.
  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1587

Post 3+ Months Ago

You probably need to keep your form that INSERTs/UPDATEs the database static, then create another SELECT statement on the same page which prints a loop of like-inputs with their value="" attributes filled with the SELECT result for every row in your database table.

Do you have an example of whatever you're talking about?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 44 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum

© 1998-2017. Ozzu® is a registered trademark of Unmelted, LLC.