Skip to content

Instantly share code, notes, and snippets.

@thedanielmiller
thedanielmiller / badsql
Created May 3, 2012 21:53
horrible sql
BEGIN
IF age < 7 AND clean = 'Poor' OR 'FAIR'
UPDATE flight_info SET cleaning = 'Y'
ELSE
UPDATE flight_info SET cleaning = 'N'
END CASE;
@thedanielmiller
thedanielmiller / aintworking
Created May 3, 2012 01:26
php to multiple MySQL tables
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Insert PHP</title>
</head>
<body>
</body>
<pre>