Jump to content
php.lv forumi

lappuses


kreizyy

Recommended Posts

Sveiki, tātad es savam webam uzmaucu pats pogu, bet tgd problēma, nezinu kā dabūt viņu kā bildes redzams.. :/

 

Šitā izskatās kad ir 1. lapa - 1291992931.jpg

 

Šita ja jebkura cita - 1291992989.jpg

 

BET ES GRIBĒTU VIŅU DABŪT ŠADU

 

Šitā izskatās kad ir 1. lapa - 1291993145.jpg

 

Šita ja jebkura cita - 1291993158.jpg

 

KODS

<center>
<?php 

$iepriekseejaa_lapa = $lapa-1;
$naakoshaa_lapa = $lapa+1;


$rakstu_skaits_datubaazee = mysql_result(mysql_query("SELECT COUNT(*) FROM raksti"),0,'COUNT(*)');

?>

<table width='100%' align='left'>
<tr>
<td>
	<div id="pages">
	<?php if($lapa > 0) echo '<a href="index.php?lapa='.(int)$iepriekseejaa_lapa.'">«</a>'; ?>
	<span class="current">1</span>
	<?php if($rakstu_skaits_datubaazee > $raksti_1_lapaa*$lapa+$raksti_1_lapaa) echo '<a href="index.php?lapa='.(int)$naakoshaa_lapa.'">»</a>'; ?>
	</div>
</td>
</tr>
</table>

</center>

Edited by kreizyy
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...