Ver Mensaje Individual
  #3 (permalink)  
Antiguo 24/01/2007, 14:40
climax2006
 
Fecha de Ingreso: abril-2006
Mensajes: 240
Antigüedad: 18 años
Puntos: 1
Re: no insertar tags html en la bdd

hola

sabes k lo coloco..pero no hace ...= m devuelve los tags en html

Código PHP:
function Table($query,$prop=array()){
    
//query
    
$res=mysql_query($query) or die('Error: '.mysql_error()."<BR>Query: $query");
    
//agrega una columna a la tabla si esta no es especificada
    
if(count($this->aCols)==0)
    {
        
$nb=mysql_num_fields($res);
        for(
$i=0;$i<$nb;$i++)
            
$this->AddCol();
    }
    
//Retrieve column names when not specified
    
foreach($this->aCols as $i=>$col)
    {
        if(
$col['c']=='')
        {
            if(
is_string($col['f']))
                
$this->aCols[$i]['c']=ucfirst($col['f']);
            else
                
$this->aCols[$i]['c']=ucfirst(mysql_field_name($res,$col['f']));
        }
    }
    
//Handle properties
    
if(!isset($prop['width']))
        
$prop['width']=0;
    if(
$prop['width']==0)
        
$prop['width']=$this->w-$this->lMargin-$this->rMargin;
    if(!isset(
$prop['align']))
        
$prop['align']='C';
    if(!isset(
$prop['padding']))
        
$prop['padding']=$this->cMargin;
    
$cMargin=$this->cMargin;
    
$this->cMargin=$prop['padding'];
    if(!isset(
$prop['HeaderColor']))
        
$prop['HeaderColor']=array();
    
$this->HeaderColor=$prop['HeaderColor'];
    if(!isset(
$prop['color1']))
        
$prop['color1']=array();
    if(!isset(
$prop['color2']))
        
$prop['color2']=array();
    
$this->RowColors=array($prop['color1'],$prop['color2']);
    
//Compute column widths
    
$this->CalcWidths($prop['width'],$prop['align']);
    
//Print header
    
$this->TableHeader();
    
//Print rows
    
$this->SetFont('Arial','',7);
    
$this->ColorIndex=0;
    
$this->ProcessingTable=true;
    while(
$row=mysql_fetch_array($res))
        
$this->Row($row);
    
$this->ProcessingTable=false;
    
$this->cMargin=$cMargin;
    
$this->aCols=array();
  }

en esa funcion la necesito.. para asi en otra pagina llamarla..y solo hacer el select..

de antemano gracias