We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A few things you should fix immediately:
Read up on "mysql injections" and "prepared statements" https://github.com/brahmnoor/PreBook/blob/master/create.php#L38
Read up on XSS attachs https://github.com/brahmnoor/PreBook/blob/master/buyticket.php#L52
You should (can) not send http headers after any content has been sent to the client. https://github.com/brahmnoor/PreBook/blob/master/create.php#L48
Move your credentials out to a separate config file (take a look at env files) https://github.com/brahmnoor/PreBook/blob/master/db.php#L5
PHP config belongs into the server's php.ini. Don't overwrite values in your code https://github.com/brahmnoor/PreBook/blob/master/db.php#L3
Separate your logic from your views. Don't execute queries in your views. Look up MVC architecture. https://github.com/brahmnoor/PreBook/blob/master/buyticket.php#L39
Don't die in the middle of your page. Catch exceptions and handle them gracefully. https://github.com/brahmnoor/PreBook/blob/master/buyticket.php#L48
die
Don't put CSS in your markup. https://github.com/brahmnoor/PreBook/blob/master/buyticket.php#L63
Extract common markup into their own files and include them. https://github.com/brahmnoor/PreBook/blob/master/seatplantry.php#L23
include
Hash your passwords https://apzentral.github.io/php-the-right-way/#password_hashing https://github.com/brahmnoor/PreBook/blob/master/create.php#L38
The text was updated successfully, but these errors were encountered:
No branches or pull requests
A few things you should fix immediately:
Read up on "mysql injections" and "prepared statements"
https://github.com/brahmnoor/PreBook/blob/master/create.php#L38
Read up on XSS attachs
https://github.com/brahmnoor/PreBook/blob/master/buyticket.php#L52
You should (can) not send http headers after any content has been sent to the client.
https://github.com/brahmnoor/PreBook/blob/master/create.php#L48
Move your credentials out to a separate config file (take a look at env files)
https://github.com/brahmnoor/PreBook/blob/master/db.php#L5
PHP config belongs into the server's php.ini. Don't overwrite values in your code
https://github.com/brahmnoor/PreBook/blob/master/db.php#L3
Separate your logic from your views. Don't execute queries in your views. Look up MVC architecture.
https://github.com/brahmnoor/PreBook/blob/master/buyticket.php#L39
Don't
die
in the middle of your page. Catch exceptions and handle them gracefully.https://github.com/brahmnoor/PreBook/blob/master/buyticket.php#L48
Don't put CSS in your markup.
https://github.com/brahmnoor/PreBook/blob/master/buyticket.php#L63
Extract common markup into their own files and
include
them.https://github.com/brahmnoor/PreBook/blob/master/seatplantry.php#L23
Hash your passwords
https://apzentral.github.io/php-the-right-way/#password_hashing
https://github.com/brahmnoor/PreBook/blob/master/create.php#L38
The text was updated successfully, but these errors were encountered: