Hello,
So i have been messing around a bit now with one of my websites, and have ran into a problem i cant see to find out.
So i am asking for some help..
So when i try to post a table from php with information from sql it places at the wrong area..
This are the following files are in use in this action.
index.php
Your posted code doesn't show it but there is an extra '<body>' tag placed before the <table>. Also, I see you're using mysql_* commands in your code. mysql_* commands are deprecated and removed from PHP v7. You should use prepared statements with mysqli_* commands or use PDO.
Oh, thanks.
I know it's the part with mysql_* and PDO. It is running on an kind of old system atm. Working on a new script for it atm, but first i will fix the themeing and so on
How can i fix the issue about the "invisible" <body> tag?
The extra <body> tag may not be in your PHP code at all. It might be in the actual HTML file that runs the PHP script. Check there first.
Yea, figured that out found one extra body tag inside the header.php file. removed the one that is not needed, and saved the file. Same error..
This page works like it should: http://solitudegaming.com/forum/topic.php?id=3
But the rest dosent.
Checking the code on both of them too see if i am missing a div or something
This might also have been moved more over to a css category ..
Tried to past the raw html from the footer.php file into the index.php file (at the bottom) still same issue. This is now a styling problem (or have always been one.)
I just checked http://solitudegaming.com/forum again and it seems to be working correctly. What problem do you still have?
i still see the fotter above the table.. do you see the same?
It should be looking like this:
idk why that page work, but not the other pages..
They are basicly the same but gather info from different sql bases..
The reason is that you forgot to close the table. After you echo the last </tr> you then need to echo </table> also.
Thank you, i should have found that my self
Sometimes a different set of eyes is needed. Glad it helped.
Or a validator.
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)