Author: Lucas

shape
shape
shape
shape
shape
shape
shape
shape
Standard

PHP SQL Injection Example and How to Avoid It

SQL Injection is a technique for injecting malicious SQL code through loopholes in the application. This is a serious flaw that completely compromises the security of the site.   Example of SQL Injection   Let’s suppose that a hacker accesses a page in any store that has this security hole. A survey of this kind

Standard

Stack – C Language Implementation

The stack is one of the data structures used for various purposes in computing. It is considered a LIFO (Last in, First out) data structure, meaning that the last element to enter the stack is the first to leave. In our example below, we have reproduced the operations: PUSH – Adds an element to the

Standard

Java SimpleDateFormat – Formatting Dates

SimpleDateFormat is a Java class that allows you to format dates.   Converting dates in en-US (United States) format to pt-BR (Brazilian) format:   package com.masterdaweb.blog; import java.text.ParseException; import java.text.SimpleDateFormat; public class Tutorial { public static void main(String[] args) throws ParseException { String usDate = “1992-08-25 13:30”; SimpleDateFormat brFormat = new SimpleDateFormat(“dd-MM-yyyy HH:mm”); SimpleDateFormat usFormat

Standard

Difference between INNER JOIN, LEFT JOIN, RIGHT JOIN and FULL OUTER JOIN

The SQL language allows tables to be joined, but sometimes these commands are forgotten and/or we get confused about the real purpose of each one. Let’s take a look at the image below, representing the various forms of JOINS: INNER JOIN Intersection between tables. Example: SELECT <colunas> FROM Table_A A INNER JOIN Table_B B ON

Latest news

Latest news directly from our blog.