jipo Posted August 13, 2008 Share Posted August 13, 2008 i create an index.php that have 2 columns. At first columns, I have a link to index.php?do=inbox At second columns, I have a code : if ($_GET['do']=="inbox"){ include "./x/sample.php"; } The code in x/sample.php : <div style="width:775px;height:150px;overflow-y:auto;overflow-x:auto;border:1px solid black;"> <table width="300" border="1"> <tr> <th scope="col">1</th> <th scope="col">2</th> <th scope="col">3</th> <th scope="col">4</th> </tr> </table> </div> The problem is the table is outside the <div> when I open it through index.php?do=inbox But when I open it from localhost/test/x/sample.php, the table inside the <div>. I very confuse with this problem... ??? Someone can help me ? Thanks. Link to comment https://forums.phpfreaks.com/topic/119448-solved-problem-with-php-use-ltdivgt-and-lttablegt/ Share on other sites More sharing options...
ignace Posted August 13, 2008 Share Posted August 13, 2008 please post the full code as the sample doesn't contain what we need to assist you Link to comment https://forums.phpfreaks.com/topic/119448-solved-problem-with-php-use-ltdivgt-and-lttablegt/#findComment-615340 Share on other sites More sharing options...
jipo Posted August 14, 2008 Author Share Posted August 14, 2008 Solved... Because I put : <table> if ($_GET['do']=="inbox"){ include "./x/sample.php"; } <table> Link to comment https://forums.phpfreaks.com/topic/119448-solved-problem-with-php-use-ltdivgt-and-lttablegt/#findComment-616139 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.