include('1.html'); include('2.html'); require('123123/123123.php'); $litera = array("a","b","c","ć","d","e","f","g","h","i","j","k","l","ł","m","n","o","ó","p","r","s","¶","t","u","v","w","x","y","z"); echo "wg polskiego:
"; for ($i=0; $i<=28; $i++) { echo "$litera[$i]"; if($i=="28") { echo"

"; } else { echo " :: "; } } echo "wg angielskiego:
"; for ($i=0; $i<=28; $i++) { echo "$litera[$i]"; if($i=="28") { echo"

"; } else { echo " :: "; } } $t = $_GET['t']; $id = $_GET['id']; $l = $_GET['l']; $page = $_GET['page']; mysql_query("SET NAMES 'utf-8'"); if($t == "display") { $query = mysql_query("SELECT id, pol FROM frazeologizmy WHERE pol LIKE '$l%' ORDER BY pol ASC"); if(mysql_num_rows($query)==0) { echo('Brak haseł na zadan± literę.'); exit; } while($row = mysql_fetch_array($query)) { $id = $row['id']; $pol=$row['pol']; echo "$pol
" ; } } if($t == "display-en") { $query = mysql_query("SELECT id, ang FROM frazeologizmy WHERE ang LIKE '$l%' ORDER BY ang ASC"); if(mysql_num_rows($query)==0) { echo('Brak haseł na zadan± literę.'); exit; } while($row = mysql_fetch_array($query)) { $id = $row['id']; $ang=$row['ang']; echo "$ang
" ; } } if($t == "details") { $query = mysql_query("SELECT pol,ang FROM frazeologizmy WHERE id='$id'"); while($row = mysql_fetch_array($query)) { $ang = $row['ang']; $pol = $row['pol']; echo "$pol

$ang" ; } } include('3.html'); require('123123/polecamy.php'); include('4.html'); ?>