Skip to content

Instantly share code, notes, and snippets.

Rian Dutra riandesign

View GitHub Profile
View radiobutton.php
<!DOCTYPE html>
<html>
<body>
<?php
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
if (!isset($_POST['genero'])) {
echo'Por favor, marque o sexo<hr>';
} else {
View checkbox.php
<!DOCTYPE html>
<html>
<body>
<?php
if ($_SERVER['REQUEST_METHOD'] === 'POST') :
if (!isset($_POST['tarefas'])) {
echo'Nenhuma tarefa feita.';
} else {
View gist:10daf98a45422b688538410eb29d29a5
{"error":{"message":"Validation error","name":"SequelizeUniqueConstraintError","frames":[{"file":"node_modules/sequelize/lib/dialects/mysql/query.js","filePath":"/Users/riandutra/Library/Mobile Documents/com~apple~CloudDocs/Projects/EveryUX/Dev/everyux_api/node_modules/sequelize/lib/dialects/mysql/query.js","method":"Query.formatError","line":223,"column":16,"context":{"start":218,"pre":" this.instance,\n 'not_unique'\n ));\n });\n","line":" return new sequelizeErrors.UniqueConstraintError({ message, errors, parent: err, fields });","post":" }\n\n case 1451:\n case 1452: {\n // e.g. CONSTRAINT `example_constraint_name` FOREIGN KEY (`example_id`) REFERENCES `examples` (`id`)"},"isModule":true,"isNative":false,"isApp":false},{"file":"node_modules/sequelize/lib/dialects/mysql/query.js","filePath":"/Users/riandutra/Library/Mobile Documents/com~apple~CloudDocs/Projects/EveryUX/Dev/everyux_api/node_modules/sequelize/lib/dialects/mysql/query.js","met
You can’t perform that action at this time.