sliede Posted June 7, 2009 Report Posted June 7, 2009 1. Lappušu dalīšanu skripts bez db taisīšanas $no_kura_ieraksta = $_GET['no']; $cik_daudz_ierakstus = $_GET['cik']; for($x = max(0,min($no_kura_ieraksta,sizeof($ieraksti));$x++;$x<min($no_kura_ieraksta+$cik_daudz_ierakstus,sizeof($ieraksti))){ echo $ieraksti[$x]; } if($no_kura_ieraksta > 0){ //te izvada <a href=... uz iepriekšējo lapu } if($_no_kura_ieraksta + $cik_daudz_ierakstus < sizeof($ieraksti)){ //te izvada <a href=... uz nākošo lapu } Vispār kurā vietā viņš jāliek ? Jātaisa jauns php fails un caur include vai kā ? To es īsti nesapratu. 2.Kā lai izlabo čarsetus.. Ierakstu index failā <meta http-equiv="content-type" content="text/html; charset=utf-8" /> Vienalga nestrādā š un ž burts Weblapas head - <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"><head> <title>LPP</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta name="keywords" content="[]" /> <link rel="stylesheet" type="text/css" href="stail.css" media="screen"> Varbūt kāds varēs palīdzēt? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.