GithubHelp home page GithubHelp logo

chapagain / crud-php-simple Goto Github PK

View Code? Open in Web Editor NEW
227.0 23.0 217.0 11 KB

Simple Add, Edit, Delete & Display in PHP & MySQL

Home Page: http://blog.chapagain.com.np/very-simple-add-edit-delete-view-in-php-mysql/

PHP 89.52% Hack 10.48%

crud-php-simple's Introduction

Simple Create, Read, Update, Delete (CRUD) in PHP & MySQL

A simple and basic system to add, edit, delete and view using PHP and MySQL.

Blog Article: Very simple add, edit, delete, view in PHP & MySQL

SQL script to create database and tables is present in database.sql file.

crud-php-simple's People

Contributors

chapagain avatar coryalder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

crud-php-simple's Issues

"update" with "blank" entry = Full of errors.

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.

SQL Injection

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

Fields empty?

How is it possible if I filled the fields, I get the message the fields are empty?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.