Skip to content

Commit

Permalink
Added the read details of a mash in soundcloud to the DB.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin McDonagh committed Sep 5, 2010
1 parent 6cdbdd3 commit 18009c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/mashbox1.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@
<tbody>
<?php
$dbh = new PDO('sqlite:mashbox2.sqlite');
foreach($dbh->query('SELECT * FROM tracks') as $row){
foreach($dbh->query('SELECT * FROM mashes') as $row){
echo ("<tr>\n");
echo ("<td><span><strong>" . $row['title'] . "</strong> by " . $row['artist'] . "</span></td>\n");
echo ("<td><span>". $row['addedby1'] . "</span> <b>&amp;</b> <span>". $row['addedby2'] . "</span></td>\n");
echo ("<td><span><strong>" . $row['name'] . "</strong> by " . $row['artist'] . "</span></td>\n");
echo ("<td><span>". $row['original_artist'] . "</span> <b>&amp;</b> <span>". $row['random_mash_artist'] . "</span></td>\n");
echo ("<tr>\n");
}
$dbh = null;
Expand Down
Binary file modified code/mashbox2.sqlite
Binary file not shown.

0 comments on commit 18009c5

Please sign in to comment.