Login   Register  
PHP Classes
elePHPant
Icontem

Cant Get Datagrid to work

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      DrasticTools  >  All threads  >  Cant Get Datagrid to work  >  (Un) Subscribe thread alerts  
Subject:Cant Get Datagrid to work
Summary:datagrid gives error about undefined variable
Messages:6
Author:JL Griffin
Date:2011-10-05 15:46:06
Update:2013-06-14 07:26:28
 

  1. Cant Get Datagrid to work   Reply   Report abuse  
Picture of JL Griffin
JL Griffin
2011-10-05 15:46:06
Hi all,
I am trying to get the datagrid to work with my database, i have edited the file:
Examplemysqlconfig.php
and inserted my database info.

however when i run the scrript i get the following error:

Notice: Undefined property: drasticSrcMySQL::$conn in /var/www/grid/drasticSrcMySQL.class.php on line 167


I cannot get the error to go away. if i comment out the line 167, i recieve a blank page with no error.

Please advise.

-JL Griffin

  2. Re: Cant Get Datagrid to work   Reply   Report abuse  
Picture of JL Griffin
JL Griffin
2011-10-05 15:46:47
Hi all,
I am trying to get the datagrid to work with my database, i have edited the file:
Examplemysqlconfig.php
and inserted my database info.

however when i run the scrript i get the following error:

Notice: Undefined property: drasticSrcMySQL::$conn in /var/www/grid/drasticSrcMySQL.class.php on line 167


I cannot get the error to go away. if i comment out the line 167, i recieve a blank page with no error.

Please advise.

-JL Griffin

  3. Re: Cant Get Datagrid to work   Reply   Report abuse  
Picture of JL Griffin
JL Griffin
2011-10-05 16:14:02 - In reply to message 2 from JL Griffin
ok, so i tried to run the page using firebug with 167 commented out and firebug gives the following error:

drasticGrid is not defined
[Break On This Error] var thegrid = new drasticGrid('grid1', {
index.php (line 14)


Please Advise,
JL Griffin

  4. Re: Cant Get Datagrid to work   Reply   Report abuse  
Picture of cogmt
cogmt
2012-05-24 14:45:15 - In reply to message 3 from JL Griffin
I am getting the same thing.

Notice: Undefined property: drasticSrcMySQL::$conn in /opt/lampp/htdocs/drasticSrcMySQL.class.php on line 167


I am running XAMPP and just put version 0623 on. It has been a few years since I last used this with no problems. So it is not making sense as I believe I have it configured correctly. Can anyone advise?

  5. Re: Cant Get Datagrid to work   Reply   Report abuse  
Picture of Davelouie Lingue
Davelouie Lingue
2013-06-14 05:51:33 - In reply to message 4 from cogmt
Just add a line

public $conn;

on the public area

it will work

it gives error because the variable is missing so just add

public $conn;

  6. Re: Cant Get Datagrid to work   Reply   Report abuse  
Picture of dd
dd
2013-06-14 07:26:28 - In reply to message 5 from Davelouie Lingue
Hi Davelouie,

Thanks for mentioning this.
We just made a new release (version number 0624) where we added the missing variable.

regards,

dd