[Typo3] Experience with odbc_connect, odbc_exec, etc.
    Hervé Inisan 
    typo3 at self-access.com
       
    Mon Aug  1 16:59:31 CEST 2005
    
    
  
> Hi listers,
> 
> I've got a little PHP script that selects and displays some 
> tables from an Access database. The script works fine on my 
> lokal machine, but...
> 
> When I try to put the script into a Typo3 extension, there is 
> no output at all.
> 
> Even if I reduce the whole extension class to something like this
> 
> 
> <?php
> function main($content,$conf)	{
> 		$this->conf=$conf;
> 		$this->pi_setPiVarDefaults();
> 		$this->pi_loadLL();
> 		$this->pi_USER_INT_obj=1;	
> 	
> 		$conn = 
> odbc_connect($cfg_dsn,$cfg_dsn_login,$cfg_dsn_mdp) or 
> die(odbc_error());;
> 			
> 		return $this->pi_wrapInBaseClass($content);
> 	}
> }
> ?>
> 
> there is NO OUTPUT AT ALL.
Hi!
In your example, the $content variable has no value.
Try at least: $content = 'blah blah';
...before the "return".
And are your $cfg_* variables well initialized?
My 2 (euro)cents :-)
-- Hervé Inisan.
    
    
More information about the TYPO3-english
mailing list