Chodzi o to ze mam taki kod
<?php
public function Pokaz_ksiege($liczba=50) {
if($db = mysql_connect($this->pasy['host'], $this->pasy['login'], $this->pasy['haslo'])) {
switch ($_GET['action']) {
case 'usun':
$ask = ('delete from ksiega_gosci where id='.(int
)$_GET['id'].' AND kod="'.addslashes($_GET['kod']).'"');
break;
case 'edytuj':
$ask1 = ('select * from ksiega_gosci where id='.(int)$_GET['id'].'');
$date = date('j/n/Y H:i:s');
<head><meta http-equiv="content-type" charset="utf-8" /><title>GuEsT bY MARCIO</title>
<style type="text/css">
a {color:#FDEDF2}
body {color:#FDEDF2}
</style>
<form method="post" action="?strona='.$strona.'&action=aktualizuj&id='.$_GET['id'].'&kod="'.$_GET['kod'].'"">
<table valign="top" width="200" bgcolor="#4E4E68" align="center" >
<tr>
<td>Podaj nick</td>
<td><input type="text" name="nick" size="70" value="'.$qwe['nick'].'" style="background-color:#000000; color:#CCCCCC;"/></td>
</tr>
<tr>
<td>Wiadomosc</td>
<td><textarea name="message" rows="3" cols="70" style="background-color:#000000; color:#CCCCCC";>'.stripslashes($qwe['message']).'</textarea></td></tr> <tr>
<td align="center" valign="top"><INPUT TYPE=image VALUE=submit src="buttons.php" /></td></tr>
</table>
');
if(!empty($_POST['nick']) && !empty($_POST['message'])) {
$id = (int)$_GET['id'];
$ask2 = ('update ksiega_gosci set nick="'.$nick.'", message="'.$message.'", data="'.$date.'" where id='.$id.' AND kod="'.$kod.'"');
break;
}
}
}
$query = ("select * from ksiega_gosci");
$strona = $_GET['strona'];
$id = (int)$_GET['id'];
$kod = $_GET['kod'];
$zap = ("select * from ksiega_gosci order by id desc limit ".$strona*$liczba.",".$liczba);
if($tab['ip'] == $_SERVER['REMOTE_ADDR']) {
echo('<table border="1" width="50%" bgcolor="#4E4E68" align="center"><tr><td width="40%">Dodal: '.stripslashes($tab['nick']).'</td><td width="26%">Dnia: '.$tab['data'].'</td></tr> <td><a href="?strona='.$strona.'&action=usun&id='.$tab['id'].'&kod='.$tab['kod'].'">usun</a> |
<a href="?strona='.$strona.'&action=edytuj&id='.$tab['id'].'&kod='.$tab['kod'].'">edytuj</a></td>
</tr>
</table></form>');
}
else {
echo('<table border="1" width="50%" bgcolor="#4E4E68" align="center"><tr><td width="40%">Dodal: '.stripslashes($tab['nick']).'</td><td width="26%">Dnia:'.$tab['data'].'</td></tr> <tr><td>'.stripslashes($tab['message']).'</td></tr></table></form>'); }
}
}
else {
echo('<script>alert("Nie ma wpisow");</script>'); }
echo('<center><a href="?strona='.($strona-1).'">Poprzednia</a>|'); }
echo('<a href="?strona='.($strona+1).'">Nastepna</a></center>'); }
else {
echo('<center><a href="?strona='.($strona+1).'">Nastepna</a></center>'); }
}
?>
Wszystko w nim dziala wiec nie musicie przegladac jednak chodzi o to zeby te linki zastapic obrazkiem i po kliknieciu na obrazek przejdzie do nastepnej/poprzedniej strony tak jak w przypadku na klikniecie na link