Skip to content
Create a gist now

Instantly share code, notes, and snippets.

@fuzzmz /mlp_fim_code.php secret

Embed URL


Subversion checkout URL

You can clone with
Download ZIP
My Little Pony: Friendship is Magic as code
function learned($start,$end){
$lesson=mysql_query("SELECT story, friendsid, about, date, plot FROM friendship INNER JOIN ponies ON = friendship.friendsid WHERE friendship.about IS NOT NULL AND date>'$start' AND date<'$end' LIMIT 1");
while ($episode = mysql_fetch_assoc($lesson)){
return $msg;
$greeting = "Dear Princess Celestia,rnrn";
$signature="rnrnYour Faithful Student,rnTwilight Sparkle";
$to = '';
$subject = 'Daily report: '.date("m.d.y");
$headers = 'From:' . "rn" .
'Reply-To:' . "rn" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.