Skip to content

Instantly share code, notes, and snippets.

View jabarrioss's full-sized avatar
😉
Learning VueJS, Express JS

Jhonny B jabarrioss

😉
Learning VueJS, Express JS
View GitHub Profile
@jabarrioss
jabarrioss / mysql_debug_queries.sql
Created November 2, 2023 17:44
MySQL debug queries
SHOW OPEN TABLES WHERE In_use > 0;
SELECT * FROM `information_schema`.`innodb_trx` ORDER BY `trx_started`;
SELECT * FROM `information_schema`.`innodb_locks`;
SHOW FULL PROCESSLIST;
SHOW ENGINE InnoDB STATUS;
@jabarrioss
jabarrioss / validarform.php
Last active April 26, 2021 18:30
Simple form validation for a random guy in the internet
<?php
function validarform(){
$mensaje = "error";
if(isset($_POST["Enviar"])){
$variablex = $_POST["variablex"];
if(empty($variablex)){
$mensaje = "Debes introducir el valor de x";
}