Hi all,
I am encountering a small problem and wondering if this is normal or i am missing something.
I have a SQL db and run PHP 4.3
One of my Column name is quite Long, like "NumberOfLocationInTheBuilding"
If i try to echo this as echo &obj->NumberOfLocationInTheBuilding; nothing is displayed on my page.
But when I insert or update data via a php form, everyhting is loaded correctly in db.
So my question is:
Does echo have some restriction in the lenght of column name?
s
Displaying content of SQL column
Moderator: General Moderators
hey F
My code is simple
$obj_query = $sql->query("Select * from table where id='1'");
$obj= $sql->objects('',$obj_query);
From there I echo most of my table as:
exho $obj->name;
etc
most of column work apart from 3 column that are really long
their name are
NumberOfLocationInTheBuilding1
NumberOfLocationInTheBuilding2
NumberOfLocationInTheBuilding3
I quadruple checked the name and they are correct!
s
My code is simple
$obj_query = $sql->query("Select * from table where id='1'");
$obj= $sql->objects('',$obj_query);
From there I echo most of my table as:
exho $obj->name;
etc
most of column work apart from 3 column that are really long
their name are
NumberOfLocationInTheBuilding1
NumberOfLocationInTheBuilding2
NumberOfLocationInTheBuilding3
I quadruple checked the name and they are correct!
s