MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedLocked
mem mi serve il tuo aiuto per faore
AuthorText
rocco.mo
Junior Member
Avatar

Posts: 84
Contributes: 8

Gender: _NEUTRAL_
Online: No
Date: 13/07/2008 13:46
mem mi serve il tuo aiuto per faore
#post9916
ciao mem son rocco volevo domandarti una cosa, io devo caricare dei blocchi che scarico dal database e li carico tramite include pero non riesco a capire perche me ne da solamente il primo e non mi scarica tutti per favorepotresti dirmi come fare?
code

if($apertura_divamoderna){
$verifico_miniblocks = mysql_query("SELECT nome_miniblocks,titolo_miniblocks,enable,active FROM mini_block WHERE  enable = '1' AND active = '1' ORDER BY id ASC");


$array = @mysql_fetch_array($verifico_miniblocks);

if(!$array){ echo"non riesco a trovare i miniblocchi".mysql_error();}
$cnt = 0;
$nome_miniblocks = $array['nome_miniblocks'][$cnt];
$tito_miniblocks = $array['titolo_miniblocks'][$cnt];
$cnt++;
ob_start();
 
include"mini-blocks/".$array['nome_miniblocks'].".php";

$pagcontenuto['content_blocks_mini'] = ob_get_contents();

 ob_end_clean();
 
   
        
}

grazie


 
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 4654
Contributes: 1961

Gender: _MALE_
Online: Yes
Date: 13/07/2008 13:47
Re: mem mi serve il tuo aiuto per faore
#post9917
per avere la serie di row devi fare un ciclo

code
$result = mysql_query("...");
while ($row = mysql_fetch_assoc($result)){
 echo ...
}
Edited: 13/07/2008 13:47
Delete Edit Quote
 
Locked
Tags Cloud
Advertising
News Archive
Language
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.103.63.59

Username
Password
New files
MemHT Wiki
Friends
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo