=$msg['knjiga_gostiju'];?>
=$msg['kg_tekst'];?> =$msg['kg_link'];?>
//pageNumbering if(!isset($_GET['page'])){ $page = 1; } else { $page = $_GET['page']; } $max_results = 10; $from = (($page * $max_results) - $max_results); //pageNumbering // create query $query = "SELECT vrijeme, ImePrezime, Email, Drzava, Tekst FROM knjigaGostiju ORDER BY vrijeme DESC LIMIT $from, $max_results;"; // execute query $result = mysql_query($query) or die ("Error in query: $query. ".mysql_error()); // see if any rows were returned if (mysql_num_rows($result) > 0) { // yes // print them one after another while(list($KG_timestamp, $KG_imePrezime, $KG_email, $KG_drzava, $KG_tekst) = mysql_fetch_row($result)) { list($KG_datum, $KG_vrijeme) = explode(" ", $KG_timestamp); list($year, $month, $day) = explode("-", $KG_datum);?>=$day.".".$month.".".$year;?>
=$KG_tekst;?>
=$KG_imePrezime;?> (=$KG_drzava;?>)
// DALI OBJAVITI MAIL. BITNO JE IMATI GA U BAZI!?> }; //pageNumbering $query2 = "SELECT * FROM knjigaGostiju;"; $result2 = mysql_query($query2); $total_results = mysql_num_rows($result2); $total_pages = ceil($total_results / $max_results); ?>// Build Previous Link if($page > 1){ $prev = ($page - 1); ?>«« =$msg['ank_prev'];?> }; ?> | if ($total_pages == 1){}else{ for($i = 1; $i <= $total_pages; $i++){ if(($page) == $i){ echo "$i "; } else { ?>=$i?> }; }; }; ?> | // Build Next Link if($page < $total_pages){ $next = ($page + 1); ?>=$msg['ank_next'];?> »» }; ?> |
=$msg['pozadine'];?>
=$msg['pozadine_tekst'];?>
//using the opendir function $dir_handle2 = @opendir($path2) or die("Unable to open $path2"); //running the while loop while ($file2 = readdir($dir_handle2)) { if($file2!="." && $file2!=".." && $file2!="a.jpg" && $file2!="Thumbs.db"){ // u velicina filea u kilobajtima $file_size = round(filesize($path2.$file2)/1024); ?> =$file2;?> =$file_size." KB";?>
};};?>
//closing the directory closedir($dir_handle2); };}; //closing the directory closedir($dir_handle); ?>
=$msg['e-cards'];?>
=$msg['ecards_odaberi'];?>
=$msg['vrijeme'];?>
=$msg['live'];?>
include 'prikupiHtml.php'; ?>Crikvenica |
15/12/2024 23:56 |