Jump to content
php.lv forumi

DVJ IESKATIES


sliede

Recommended Posts

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?

Edited by sliede
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...