Notice: Undefined index: album_name in C: \ xampp \ htdocs \ gallery.php on line 69
Line 69:
$album_name = $db->data[0]['album_name'];
This part code:
$db->query( "select * from fotos" )->fetchAll();
if ( $db->rows >= 1 )
{
$album_name = $db->data[0]['album_name'];
echo "<h1>" . $album_name . "</h1>\n";
echo "<a href=\"album.php\" class=\"back\"><img src=\"images/left.png\"/> Voltar</a>";
I need to make a select to put the album name on my site, but I'm having this problem