Visualizzazione dei risultati da 1 a 2 su 2
  1. #1
    Utente di HTML.it L'avatar di semolino
    Registrato dal
    Nov 2004
    Messaggi
    1,499

    Formattazione link per pulsante

    in sort.php ho questo codice
    Codice PHP:
        $query "SELECT id,DATE_FORMAT(data, '%d.%m.%Y') as newData,titolo
        FROM news
        ORDER by data desc
        LIMIT 0,
    $tot";
    $result mysql_query($query);
    $output 'totNews='.mysql_num_rows($result);
    while(
    $news mysql_fetch_array($result)){
       
    $output .= '&data'.$i.'='.$news['newData'];
       
    $output .= '&titolo'.$i.'='.urlencode($news['titolo']);
       
    $i++;
    }
    echo 
    $output
    e in flash al primo frame ho:
    Codice PHP:
    stop();
    Stage.showMenu false;
    Stage.scaleMode 'noScale';
    System.useCodepage true;

    file 'http://www.dominio.it/news.php';
    news = new LoadVars();
    news.onLoad = function(success){
        if(
    success){
            
    play();
        }
    }
    news.load(file); 
    e al secondo frame:
    Codice PHP:
    stop();
    function 
    News(){
        if(
    == news.totNews){
            
    0;
        }
        
    txtNews.htmlText '[i]'+news["data"+i]+'[/i]
    '
    ;
        
    txtNews.htmlText += '[b]'+news["titolo"+i]+'[/b]
    '
    ;
        
    i++;
    }
    News(); 
    cosi mi stampa le righe andando a capo e va bene, ma se volessi farli diventare dei link?
    ovvero come posso dare il valore della stringa (formattato come link) ad ogni pulsante?

  2. #2
    Utente di HTML.it
    Registrato dal
    Nov 2000
    residenza
    Roma
    Messaggi
    58
    ho lo stesso problema , mi fai sapere se poi hai risolto?

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.