Skip to content

Instantly share code, notes, and snippets.

<?php
if (!isset($_GET['params']))
{
if ($result = $pdo->query("SELECT a.title, b.category FROM `chase` AS a
JOIN `categories` AS b ON a.cat_id = b.id"))
{
$result->execute();
@Stasonix
Stasonix / live.php
Created June 30, 2012 11:38
simple parse
<?php
$html = file_get_contents($page);
preg_match_all("/(<h3>(\d+:\d+)<\/h3>).+?(<h5>(.*?)<\/h5>)/is",$html,$matches);
echo "<h2 align='center'>LIVE</h2>";
echo "<br /><hr>";
@Stasonix
Stasonix / test.php
Created June 24, 2012 07:23
Fastcode
<?php
echo "All is very good!";
?>