Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Ricerca in piu' pagine

This is a discussion on Ricerca in piu' pagine within the Flash CS3 | PHP | mySQL forums, part of the Flash CS3 generale category; Salve a tutti, non so se questa è la sezione adatta ma, dato ke uso pho e mySql ho pensato di ...


Go Back   Forum Flash CS3 Flash CS4 > Flash CS3 e Actionscript 3.0 > Flash CS3 generale > Flash CS3 | PHP | mySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-09-08, 19:50
Member
 
Join Date: Jun 2008
Posts: 57
Rep Power: 1
jseeker is on a distinguished road
Thumbs up Ricerca in piu' pagine

Salve a tutti, non so se questa è la sezione adatta ma, dato ke uso pho e mySql ho pensato di postare qui.La mia domanda è questa. Come posso effetuare una ricerca ke mi dia i risultati in piu' pagine? Ad esempio io voglio ke in una pagina c siano 5 risultati, e poi altre 3 pagine cliccabili con altrettanti risultati. Ho fatto gli script in php pero' ovviamente i risultati me li da tutti in un unica pagina. Ho pensato e se questi risultati sono troppi, ho delle pagine kilometrike!
Per intenderci tipo google.

Qualcuno ha mai fatto qualcosa del genere?

P.S. Ovviamente mi riferisco a pagine normali senza interazione con flash.

Grazie a tutti.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 15-09-08, 18:29
tem's Avatar
tem tem is offline
Moderator
 
Join Date: Jan 1970
Posts: 488
Rep Power: 39
tem is on a distinguished road
Re: Ricerca in piu' pagine

Ciao!
ecco un esempio:
Code:
        $news_per_page = @$_GET['xpage'];
	if(strlen($news_per_page) == 0){
		$news_per_page = 10;
	}else { $news_per_page = ricevoGet($news_per_page);}
	
	//Pagina di inizio
	if(!IsSet($_GET['start'])){
		$start = 0;
	}else{
		$start = $_GET['start'];
		$start = ricevoGet($start);
	}	


        //Query SQL 
        $strSQL = "SELECT * FROM my_row";

	$result = mysql_query($strSQL);
	$tot_rec = mysql_num_rows($result);
	//Numero pagine
	$num_page = ceil($tot_rec/$news_per_page);
	$current_page = ceil(($start/$news_per_page) + 1);
	//Libero la memoria
	mysql_free_result($result);
	//Fine questione paginazione :-)
	
	$strSQL .= " ORDER BY my_row.dtmPubblicazione DESC LIMIT $start, $news_per_page";

        //Eseguo la query SQL
        $result = mysql_query($strSQL);


        //Scorro gli ultimi 10 articoli inseriti
       while($row = mysql_fetch_array($result))
        {
	$counter++;
	
	$intMyID = @$row['intMyID'];
	
        //Visualizzo a video l'articolo

        echo " quello che ti serve";

        }

        //Libero la memoria
        mysql_free_result($result);

        if($num_page > 1)
	{
	          //Ciclo FOR per elencare i numeri pagina
		for($page = 1; $page <= $num_page; $page++){
			if($page == $current_page){
				echo "$page";
			}else{
				echo "$page";
			}
		}
          }
il codice arriva da qui: http://www.masterdrive.it
__________________
http://www.thetconcept.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 17-09-08, 10:40
Member
 
Join Date: Jun 2008
Posts: 57
Rep Power: 1
jseeker is on a distinguished road
Re: Ricerca in piu' pagine

Grazie mille Tem.
Potresti aiutarmi con il mio post in ActionScript avanzato "Play e Buffering" ?
Ciao e grazie come sempre alle tue risposte.

jseeker :)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Flash CS3 pagine in entrata e in uscita Alex Actionscript 3.0 base 0 22-07-08 18:52
Ricerca prodotto j0k3r Flash CS3 generale 8 09-05-08 09:36
motori di ricerca damn73 Flash CS3 generale 0 02-04-08 14:27
motore di ricerca interessante mariano.martucci Off Topic - Libera la mente 2 25-08-07 20:47


All times are GMT. The time now is 19:36.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406