Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Functions.php
- */
- function result_arrray($query){
- $table = array();
- while($row = mysql_fetch_array($query)){
- $table[] = $row;
- }
- return $table;
- }
- ?>
- <?php
- /*paginata.php*/
- $lit_query = mysql_query("SELECT `row`, COUNT(rand_din_db) AS numar_camere FROM `tabelul_tau`") or die(mysl_error());
- $array_result = result_array($lit_query);
- foreach($array_result as $key => $arrkey){
- /*
- print $arrkey['numar_camere'];
- print $arrkey['rand_celula_tabel etcc..'];
- */
- print_r($arrkey);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement