Ciao,
come posso utilizzare la funzione replace per eliminare la stringa di testo "http://" nella variabile $answers3?
Ho provato, nel codice commentato, ma mi da un errore...
Codice PHP:
                    $query3  "SELECT * FROM $events_answer_tbl WHERE registration_id = '$id'  AND question_id = '11'"//sito
        
$result3 mysql_query($query3) or die('Error : ' mysql_error());
            while (
$row3 mysql_fetch_assoc ($result3)){
            
$answers3 $row3['answer'];
            
// $answers3 = str_replace('http://', '', $answers3);
                            
if ($answers3== ""){
                    
$sito "";
                    }
                else{
                    
$sito "[url='http://".$answers3."'][img]http://sito.it/wordpress/wp-content/uploads/2010/05/website.gif[/img][/url]";
                    }

            }