chapagain / crud-php-simple Goto Github PK
View Code? Open in Web Editor NEWSimple Add, Edit, Delete & Display in PHP & MySQL
Home Page: http://blog.chapagain.com.np/very-simple-add-edit-delete-view-in-php-mysql/
Simple Add, Edit, Delete & Display in PHP & MySQL
Home Page: http://blog.chapagain.com.np/very-simple-add-edit-delete-view-in-php-mysql/
Good Job :)
The way you are concatenating the input from the user into the SQL statements opens you up to a SQLInjection attack. If an attacker finds a SQL Injection they can do anything to the database that the user you're connected to the database as has. This includes extracting the entire database of data or even lad a shell on the database.
for more information visit: https://www.owasp.org/index.php/SQL_Injection. it is an open source community to bring awareness of application security to the masses.
Also the attack tool favored by attackers is SQLMap: http://sqlmap.org/
You can modify your code to use parameterized inputs into the SQL Statement:
http://php.net/manual/en/pdo.prepared-statements.php
How is it possible if I filled the fields, I get the message the fields are empty?
You do an entry, no problem
You update and entry, no problem
During update, you leave the entry blank and submit = An ugly page with full of errors. Try it. Multiple people already mentioned about this but I didn't see the answer on your blog posts.
You have another CRUD code on github. That one also gives the same error.
Please let me know if you know how to fix this. Thanks a lot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.