Skip to content

Instantly share code, notes, and snippets.

<?php
/// stránkování
$stranka=isset($_GET['stranka']) ? (int)$_GET['stranka'] : 1;
$limit=5;
$start=($stranka -1)*$limit;
// /stránkování
$albs=Array();
$pocetAlb=0;
If(isset($_GET['interpret'])) {
$where="WHERE Contentgroup='".mysql_real_escape_string($_GET['interpret'])."' AND Album='".mysql_real_escape_string($_GET['album'])."'";
<?php
/// stránkování
$stranka=isset($_GET['stranka']) ? (int)$_GET['stranka'] : 1;
$limit=5;
$start=($stranka -1)*$limit;
// /stránkování
$albs=Array();
$pocetAlb=0;
If(isset($_GET['interpret'])) {
$where="WHERE Contentgroup='".mysql_real_escape_string($_GET['interpret'])."'";
<?php
/*
POUŽITÍ
1) Vytvořit proměnnou pro třídu Ulozit
$promenna = new Ulozit('host', 'user', 'pass', 'databaze');
2) Poté načíst CSV dvěma způsoby
a) Cesta k souboru