Created
April 19, 2011 01:26
-
-
Save Quirkylee/926636 to your computer and use it in GitHub Desktop.
anything wrong with the code? else is not showing.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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