By: Trent
Date: 2007-01-08
Time: 05:33
|
TbsSql and TBS 3.2I'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:
When I run stats.php, I get the following error:
Can someone point me in the right direction here? |
||
By: Skrol29
Date: 2007-01-08
Time: 19:23
|
Re: TbsSql and TBS 3.2Hi Trent,
An instance of TbsSQL is missing, and probably the opened connection to the database. To open a MySQL connection:
If you already have an opened MySQL connection:
|
||
By: Trent
Date: 2007-01-08
Time: 20:32
|
Re: TbsSql and TBS 3.2Thanks. That did it. I can't believe I overlooked that.
|
||
By: Don Bledsoe
Date: 2007-05-09
Time: 13:41
|
Re: TbsSql and TBS 3.2I've missed something here, but cannot see it is.
PHP:
HTML:
|
||
By: Skrol29
Date: 2007-05-10
Time: 00:44
|
Re: TbsSql and TBS 3.2Hi,
Parameter "block" is case sensitive. It should be [blk.id;block=TR]. And you need only one "block=TR" in one field of the block. Others are superfluous and ignored. |
||
By: Don Bledsoe
Date: 2007-05-10
Time: 02:44
|
Re: TbsSql and TBS 3.2Thanks for the clarification. I'm getting this error:
I thought this was because the class is not being instantiated, but I think it is, unless there's an error in my syntax or some other detail I've overlooked. |
||
By: Skrol29
Date: 2007-05-10
Time: 03:14
|
Re: TbsSql and TBS 3.2Hi,
Your message should not be displayed since your have instancied TbsSQL before the MergeBlock() with a $Db = new clsTbSQL(...); Are you sure TbsSQL is instanced before you call MergeBlock() ? If it's so, can you test the existence of the variable $GLOBALS['_TBS_UserFctLst']['k:tbssql'] just before the MergeBlock ? |
||
By: Don Bledsoe
Date: 2007-05-10
Time: 04:05
|
Re: TbsSql and TBS 3.2Okay, I tested it with this:
|
||
By: Don Bledsoe
Date: 2007-05-10
Time: 04:06
|
Re: TbsSql and TBS 3.2Duh ... it reports: GLOBALS do not exist.
|
||
By: Skrol29
Date: 2007-05-10
Time: 10:20
|
Re: TbsSql and TBS 3.2Ok,
This is strange because this value is set by the creator function of the TbSQL class. Can you double check the version of TbsSQL ? Can you aslo do the same test of variable existence just after the line $Db = new clsTbsSQL(...) ? |
||
By: Don Bledsoe
Date: 2007-05-10
Time: 12:18
|
Re: TbsSql and TBS 3.2Here's what I ran:
|
||
By: Don Bledsoe
Date: 2007-05-10
Time: 12:19
|
Re: TbsSql and TBS 3.2Version info: Version 2.0, 2007-03-01, Skrol29
|
||
By: Skrol29
Date: 2007-05-11
Time: 11:31
|
Re: TbsSql and TBS 3.2Hello,
I cannot reproduce your bug. Can send to me a small set of files stand alone which reproduce your bug ? |
||
By: Don Bledsoe
Date: 2007-05-14
Time: 02:00
|
Re: TbsSql and TBS 3.2In case it's a help, here's a link for the PHP configuration:
http://www.forefrontinternet.com/phpinfo.php Don |
||
By: Don Bledsoe
Date: 2007-05-15
Time: 17:59
|
Re: TbsSql and TBS 3.2Is there a recommended workaround for this until it is resolved?
|
||
By: Skrol29
Date: 2007-05-15
Time: 20:21
|
Re: TbsSql and TBS 3.2Hi,
I need a snippet from you to reproduce the problem. You configuration page doesn't give enough clues. You problem is not normal: you are using TbsSQL a common way but you have a bug not met since now. |
||
By: Don Bledsoe
Date: 2007-05-16
Time: 02:25
|
Re: TbsSql and TBS 3.2This code works and it adds records as it is supposed to:
Check after clsTbsSQL: Globals exist. Check after clsTinyButStrong: Globals do NOT exist. But it adds records just fine, which I verified with phpMyAdmin. |
||
By: Skrol29
Date: 2007-05-18
Time: 04:14
|
Re: TbsSql and TBS 3.2Hi Don,
I've tested your snippet on PHP 4.4.5 and I have the following display:
So it run ok here. Can you give me your email so I can send my text to you? Then we can finally found what's going bad. |
||
By: Don Bledsoe
Date: 2007-05-18
Time: 04:50
|
Re: TbsSql and TBS 3.2Sure ... dbledsoe@forefrontinternet.com
|
||
By: Don Bledsoe
Date: 2007-05-18
Time: 05:07
|
Re: TbsSql and TBS 3.2I'm running on PHP 4.4.6
|