Skip to content

Instantly share code, notes, and snippets.

There seems to be an error. Please try again.
exception 'PDOException' with message 'SQLSTATE[42000]: Syntax error or access violation: 1067 Invalid default value for 'expiry_date'' in /var/www/html/install/index.php:31 Stack trace: #0 /var/www/html/install/index.php(31): PDOStatement->execute(Array) #1 /var/www/html/install/index.php(108): try_query(Array) #2 {main}
exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint' in /var/www/html/install/index.php:31 Stack trace: #0 /var/www/html/install/index.php(31): PDOStatement->execute(Array) #1 /var/www/html/install/index.php(108): try_query(Array) #2 {main}
exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint' in /var/www/html/install/index.php:31 Stack trace: #0 /var/www/html/install/index.php(31): PDOStatement->execute(Array) #1 /var/www/html/install/index.php(108): try_query(Array) #2 {main}
exception 'PDOException' with message 'SQLSTATE[HY000]:
### Keybase proof
I hereby claim:
* I am kylegordon on github.
* I am kylegordon (https://keybase.io/kylegordon) on keybase.
* I have a public key whose fingerprint is 1FC8 7A4B B0A3 CBA9 D8E7 4011 9787 19C2 96EF EE22
To claim this, I am signing this object:
@kylegordon
kylegordon / gist:3960418
Created October 26, 2012 18:15
wait_change()
void wait_change() {
int on;
unsigned char v;
do {
v = inb(status);
on = !!(v & 0x20);
usleep(1000);
} while (on == laston);
laston = on;
@kylegordon
kylegordon / lcdlogger.cpp
Created October 20, 2012 16:33
lcdlogger
#include <LCDLogger.h>
#include <LiquidCrystal.h>
// Always check the feature is enabled before any code.
#ifdef ENABLE_LCD_OUTPUT
// initialize the library with the numbers of the interface pins
// The arguments are in this order (RS, EN, D4, D5, D6, D7)
LiquidCrystal LCDLogger::lcd(LCD_RS_PIN, LCD_EN_PIN, LCD_D1_PIN, LCD_D2_PIN, LCD_D3_PIN, LCD_D4_PIN);