PHP Classes

TbsSql & TBS 3.2 Error

Recommend this page to a friend!

      TbsSQL  >  All threads  >  TbsSql & TBS 3.2 Error  >  (Un) Subscribe thread alerts  
Subject:TbsSql & TBS 3.2 Error
Summary:Error Using TbsSQL with TBS 3.2
Messages:2
Author:Trent Collie
Date:2007-01-08 16:44:14
Update:2009-09-21 15:52:34
 

 


  1. TbsSql & TBS 3.2 Error   Reply   Report abuse  
Picture of Trent Collie Trent Collie - 2007-01-08 16:44:14
I'm using TbsSql 1.01 (or 1.1??) and TBS v. 3.2 and I'm having problems outputting data to my template. Here is my php code:

//Stats.php
include('tbssql_mysql.php');
include('tbs_class.php');
$TBS = new clsTinyButStrong ;
$TBS->LoadTemplate('stats.html') ;
$TBS->MergeBlock('users','tbssql','SELECT * FROM users where id = 1');
$TBS->Show() ;

When I run stats.php, I get the following error:

TinyButStrong Error when merging block [users] : Data source Id 'tbssql' is unsupported because function 'tbsdb_tbssql_open' is not found.

  2. Re: TbsSql & TBS 3.2 Error   Reply   Report abuse  
Picture of Skrol29 Skrol29 - 2009-09-21 15:52:34 - In reply to message 1 from Trent Collie
Hello,

You have to create a TbsSQL instance first.
Like: $Db = new clsTbsSql();