During making a dynamic website, it is often needed to insert data into a database. Generally MySQL is used as the database in PHP. So, here you will see how to insert data using PHP code. For this, a practical example is given for you. Suppose, there is a form that has two text fields.
What should happen when you insert two values in both the fields and click Add button? See Image:
Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts
Friday, July 30, 2010
Sunday, July 25, 2010
How to Read and Show Text File Contents in PHP?
When you work with dynamic website you have to use database and tables. You insert data into a table of a database and read data from that particular table when needed. Suppose, you create a table and insert a long description about your webpage in that table. But it can easily be done creating a text file into your computer and then just calling this file using PHP code.
How to write a Database Connection Code in PHP?
In PHP, you can easily write database connection code. Actually when you want to make any dynamic site using PHP programming language then the first question before doing anything that will arise into your mind is: "How can I make database and how to link with database". In the following, I write a database connection code that will become very simple and easy.
Subscribe to:
Posts (Atom)





