- Details
- Written by: Stanko Milosev
- Category: PHP
- Hits: 5375
Whenever is possible use parameterized queries in MS driver for PHP for MS SQL, to reduce risko of SQL injection attack.Taken from here.
Using of parametrized queries is simple, you can use example from here, for varchar types everything is same (you don't need quotes, as I thought) .
- Details
- Written by: Stanko Milosev
- Category: PHP
- Hits: 6094
So, this is my first post
How to check is anything passed to $_GET or $_POST variables?
Easily:
if (!isset($_GET['download'])) {
Example:
<?php
if (!isset($_GET['download'])) {
echo ('Error download is not assigned');
} else {
echo ($_GET['download']);
}
?>
Taken from here.
- Details
- Written by: Stanko Milosev
- Category: Windows
- Hits: 92
winget install GitHub.Copilot