Skip to content

Instantly share code, notes, and snippets.

Created April 19, 2011 01:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
anything wrong with the code? else is not showing.
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