Skip to content

Instantly share code, notes, and snippets.

@Quirkylee
Created April 19, 2011 01:26
Show Gist options
  • Save Quirkylee/926636 to your computer and use it in GitHub Desktop.
Save Quirkylee/926636 to your computer and use it in GitHub Desktop.
anything wrong with the code? else is not showing.
<?php
if($_GET['a'] = "addalbum") {
} elseif($_GET['a'] = "manalbum") {
} elseif($_GET['a'] = "editalbum") {
} else {
echo "e";
$gallery = $db->query("SELECT * FROM albums ORDER BY name ASC");
echo "<table>";
while($row = $gallery->fetch_assoc()) {
echo "<tr><td><a href=\"admin.php?p=gallery&a=editalbum&i=".$row['id']."\">Edit Details</a></td>";
echo "<td><a href=\"admin.php?p=gallery&a=manalbum&i=".$row['id']."\">".$row['name']."</a></td>";
echo "<td>$".$row['price']."</td></tr>";
}
echo "</table>";
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment