There are two ways of doing this: one by saving the image directly in the database as type blog, but this way will not use it due to which, over time, tends to slow down the database due to the size of the images; then use the second form in which it is save it route image to then view it and in this way we avoid to eventually put slow database manager system. Now I am going to share this little knowledge. First let’s see the steps to achieve this: 1. creation of the database, in this case with a single table to be able to illustrate the example in a simple way. 2. Creation of the html form, which will allow us to be able to save the image on your computer. 3.
Creation of the php file to be able to save and send the data to the database. 4. Creation of another php file, which will allow us to be able to view the query in the database. DEVELOPMENT: 1. tool used: XAMPP 1.7.3! with this tool you you save a huge amount of work and time spent on configuration, allowing you to devote himself to more rapid software development.
You can work with XAMPP (mysql php and html) which is what is needed in this case to give solution to the problem. Name of the database: in this case we will assign practicaimagenes, and the use of a table with the names of people. Structure of the table people, which will contain three fields: the first id_persona which will assign the key or primary key of type integer or int (40) and not null or null, the rest if it can be non-null or null, however, following field named Photo type varchar (60) and another called field name type varchar (30).In accordance with the foregoing explanation, people is the name of the table; id_persona is the first field in the table that will serve to save the identity card or personal identification;Photo is the second field of the table that will store the path of the file or fotografiaa show and the third name field that it will serve to save the name of the person. 2.