"); print ($field->table .":". $field->name.":". $field->type); print ("\n");} $alfabet = array( 1=>"A","B","C","Ć","D","E","F","G","H","I","J","K","L","Ł","M","N","O","P","R","S","Ś","T","U","V","W","Y","Z","Ż" ); */ function printAlfabet ( $element ) { global $poz, $R, $W; # if ($element == $poz) { $gif = $litera[$arg][1]; } # else { $gif = $litera[$arg][2]; } $tdhi = "\n\t\t" . "" ; $adres = "skorowidz.phtml?R=$R&W=$W&poz="; //-------------------------------------------------- foreach ( $element as $key => $v) { $str .= $tdhi; $str .= "" . $v . ""; }; echo ( "\t" . $str . "\n" ); } $BorderColor1 = "#efefef"; $BorderColor2 = "#001199"; $BorderColor3 = "white"; $SQL_quey01 = "select concat(Nazwisko, ' ', Imie) from Delikwenci where Nazwisko like \"A%\" "; # # # porcjowanie $page = $_REQUEST['page']; $query = $_POST['query']; // check to see if $page is set if (!$page) { $page = 1; } // Change $query to a request super global after the first page. if($page > 1){ $query = $_REQUEST['query']; } //set up some limits $limit = $page * 10; $limit = $limit - 10; //get the count from the database table $dump_res01 = mysql_query( $SQL_quey01, $connect ); $num = mysql_num_rows ( $dump_res01 ); // query your database for the final results $sql_results = mysql_query( $SQL_quey01 . "LIMIT $limit,10", $connect); if($num < 10) { $through = $num; } else { $through = $limit + 10; } if ($through > $num) { $through = $total; } if($page > 1) { $from = $limit +1; } else { $from = $limit; } if($from == 0) { $from = $from +1; } echo "Rezultat wyszukiwania:"; echo "

"; if ($page > 1) { echo "<< poprzednia  "; } if (($num > 10) && (($limit + 10) < $num)) { echo "następna >>"; } while(list($results)=mysql_fetch_array($sql_results)) { echo "$results
"; } if ($page > 1) { echo "<< poprzednia  "; } if (($num > 10) && (($limit + 10) < $num)) { echo "następna >>"; } # # # echo "

aqq!

"; ?> \n"); print("\n"); # --- [menu-alfabet] ---------------------------------------------------------------------------- print("\t\n"); print("\t\n"); printAlfabet($alfabet); print("\t\n"); print("\t\n"); print("\t
\n"); print(""); print("\n\n"); # --- [menu-alfabet] ---------------------------------------------------------------------------- # # --- [wykaz] ----------------------------------------------------------------------------------- print("\n"); # print( Lista() ); echo "xxx"; print("\n"); print("\n"); print("\n"); # --- [wykaz] ----------------------------------------------------------------------------------- print("\n"); ?>