Php datagrid class overwriting all my html

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jb489
Forum Newbie
Posts: 21
Joined: Tue Jul 21, 2009 4:37 am

Php datagrid class overwriting all my html

Post by jb489 »

Hi all,

pretty new to php and this site, so please forgive the simplicity perhaps and if this is in the wrong topic.

At a point in my view page (which consists of html), I am creating an instance of a datagrid class I have.

Now:
when not creating the datagrid instance i get all of my html showing.
So for example:
_____________________________________
| TITLE |
| __________________________________ |
| | | |
| colA | EMPTY page | colB |
| | | |
| | | |
|_____|________________________ |____ |

but when i create the datagrid instance, i get this:

_____________________________________
| TITLE |
| __________________________________ |
| |
| |
| |
| |
|_____________________________ ____ _ |


anyone knows what could be doing this off hand? perhaps the z-index or something


Thanks in advance. If you need code, i could add it.
User avatar
turbolemon
Forum Commoner
Posts: 70
Joined: Tue Jul 14, 2009 6:45 am
Location: Preston, UK

Re: Php datagrid class overwriting all my html

Post by turbolemon »

Hi there,

Without further information (the code, and if possible a link to a working example) there's not much that anybody can do to help.
jb489
Forum Newbie
Posts: 21
Joined: Tue Jul 21, 2009 4:37 am

Re: Php datagrid class overwriting all my html

Post by jb489 »

sure. Thanks for your suggestion.

so this is the code:


<div id="contentwrapper">
<div id="contentcolumn">
<div class="innertube"><b>Sam found: </b>
<div>
<?php
//User search info goes here
$singleUserDatagrid = new DataGrid();
echo $singleUserDatagrid->ShowCaption();
?>
</div>
<div>
<?php
//Table with matching credentials goes here
$multipleUserDatagrid = new DataGrid();
echo $multipleUserDatagrid;
?>
</div>
</div>
</div>
</div>

when i uncomment the single user and multiple user datagrids, the previously mentioned happens

thanks a real lot
Post Reply