zeuch
Posts: 25
|
Posted: 05/12/2004, 12:20 PM |
|
Hi all!
I'm getting an error if page don't have a grid ou record grid. The error is in "CCGetDBValue" function of Common.php page, at line "$db->query($sql);".
Anybody can help me? Anybody get an error like that?
Thanks for while and sorry for my little vocabulary.
Regards,
Matheus
_________________
Matheus Zeuch |
|
|
carolcastro
Posts: 24
|
Posted: 05/12/2004, 12:28 PM |
|
If you don´t have a grid you have to add a line creating the connection
$db = new clsDB<connection_name>();
Hope it works!
_________________
Carol Castro |
|
|
zeuch
Posts: 25
|
Posted: 05/12/2004, 12:39 PM |
|
Carol, I added the line "$db = newDBconexao();" at Page After Initialize and it don't work. Have you other sugestion?
[]'s
_________________
Matheus Zeuch |
|
|
zeuch
Posts: 25
|
Posted: 05/12/2004, 12:41 PM |
|
Sorry, it's "$db = new clsDBconexao();"
_________________
Matheus Zeuch |
|
|
carolcastro
Posts: 24
|
Posted: 05/12/2004, 2:09 PM |
|
Try adding the line o the top of the page_events.php
ex:
<?php
$db = new clsDB<connection_name>();
//BindEvents Method @1-D40060DD
function BindEvents()
{
global $CCSEvents;
$CCSEvents["BeforeShow"] = "Page_BeforeShow";
}
//End BindEvents Method
....
Probably it work now. If it doesn´t work write the line before you use the CCGetDBValue!
_________________
Carol Castro |
|
|