Jump to content
sgt_spike

Content not showing

Recommended Posts

I have a table pulling data from a database.  Everything works getting the data to show in the table, however the content under the table isn't showing up.  I'm using bootstrap 4.0 for layout, so I have rows and cols with the table being the third row and two other rows, not showing, under the 3rd row.  I've moved one row about the table row and it show up, but put it back under the table and it disappears.

I've ensured I have the right amount of div tags for each of the rows and cols.

 

I'm at a loss

Share this post


Link to post
Share on other sites

You need to post the relevant code if you want help with it, or link to it if you have it online.

Share this post


Link to post
Share on other sites

That's the end result returned from server, what about code that produced that result.

On 5/8/2018 at 8:09 PM, sgt_spike said:

I've ensured I have the right amount of div tags for each of the rows and cols.

What about div tags for everywhere else?

It does not validate, you have misplaced double quote in inline CSS, duplicate id value references, 3 missing closing div tags and no closing body or html tags

https://validator.w3.org/nu/?showsource=yes&useragent=Validator.nu%2FLV+http%3A%2F%2Fvalidator.w3.org%2Fservices&acceptlanguage=&doc=https%3A%2F%2Fbacmedia.duckdns.org%2Findex.php#l23c3.

Share this post


Link to post
Share on other sites

Ah, I've been looking for that validator.  I knew W3 had one.

 

Anyways, I see my problem.  It seems the php is making it seem like the tags aren't there.  Hmmm, I'll have to research it more.

Share this post


Link to post
Share on other sites
Quote

It seems the php is making it seem like the tags aren't there.

Haha, the tags are either there or not.  PHP does not impress the browser with its illusions and magic tricks, it just sends output.  If you're seeing the HTML output stop at a certain point, my bet is that you have a fatal error and error reporting is turned off, so you're not seeing the error message.  You can add this code to the top of your PHP code to set options at runtime.  This will work for runtime errors, but not syntax errors in the same file.  You can also review your settings in php.ini to make sure they're what you want them to be.  It's common to display errors while you're developing, but for the live site write them to a log file that you can check later.

ini_set('display_errors', 1);
	error_reporting(E_ALL);

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×