Jump to content

ksa

New Members
  • Posts

    2
  • Joined

  • Last visited

ksa's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Attached are my 3 files. You will have to create the database and tables first to test this. I'm using MySQL. the field names for the table are: Book_Id Book_Name Author Book_price The main form is updateinsertdata2.php. This file is the html form to work with. When you click on the 'edit' link (make sure there is data in the table first to see this link), the top of the form is filled in with data and an 'update' button appears When you click on the 'update' button the $_POST does not get set so my code does not get executed. Why? connecttodb.php indexupdateexp.php updateinsertdata2.php
  2. I don’t know if this can be accomplished with php, html, javascript. Anyway, I have a form that I want to be submitted to a php file that will create a pdf with the data from the form. This part I know how to do. However, whenever the form is submitted I want to create an auto increment number every time the form is submitted. I know this could be accomplished with a database that stores the form data and keep track of the number sequencing. Since I don’t have a database, I want to know if there is another way to accomplish this. Do I create a text file and record the last number in the file and read from that file to see what number to use next? Does php have a function that I can use to keep track every time a php scripts is ran or can this be accomplish with javascript/html?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.