Welcome back.
Now it's time to work on this matter, because if you click on this button, it's going to take you
to the single article page, but nothing is going to be displayed because I created this page and I
didn't.
I didn't work on the content of this page.
So in order to display the content of a specific article, we need to transfer the remember we to transfer
these values from here to the single article.
How can you do that?
To do that, first of all, we need we need to import.
You went to say Beach B. and then include once and then we need to include the header.
I'm going to say hinder that beach and then we need to also include the footer.
We need to say a year BHP and then.
Include.
Once and then for terror.
That BHP.
Between we need first to open up each script and then we need to check and get the data.
So in order to check the the these values and check whether they exist or not, we need to use if statement
I'm going to say here and then it was sequenced.
I'm going to be using the exact function and I'm going to also use the post.
I'm going to say past.
And then we need to check each single element we passed.
Remember, we passed the prescription, the content and the audio, so I'm going to say here is set
post description.
If it's set scription.
And and.
Is set and then.
Post content.
Content and you're and and.
Is set.
And then past.
First and then you are ill.
The third one was the ordeal.
And you can even check the emptiness of these.
You can check whether they are empty or not, but it's it's additional if you want to do that.
And here I'm going to say else else, if they are not set, then we need to stay here.
Heather.
Heather?
And then we need to take the user to the index again, we need to see location and then index that beach.
So in case of error, we need just to return to the user to the index.
This is in case of error, in case of success, in case we have the description of the content of the
aureole, we can display these.
So first, we need to store them invaluable.
I'm going to say description.
Is going to be equal to the description, so in order to store it, we need you just need to say past
and then description.
And then semicolon and then we can also see a description and then the content.
Is equal to past.
And then.
Content.
Similarly, for the ordeal, we can say.
You are ill is equal to past.
You are ill.
Now we need to display this similar to what we have done here, so we need to copy the gut from here.
However, we we don't need to have a for each loop because this is not a look.
This is just going to display the content.
Therefore, I'm going to copy this good.
I'm going to copy this code, and then I'm going to piece it here, but we need to fix many things.
I'm going to sit here.
However, we need to first remove this form.
I'm going to remove this form completely.
And also, what we need to do is that we need to push this and then we need to close here, the beach,
be here, close, it was beach.
This is very tricky.
You need to pay attention to this.
And then here you need to open a new beach.
Be scrapped.
You need to say.
BHP and then its year will close here, it's going to close the beach, so again, this part is BHP.
And then this part is Richard M..
And then this part is again BHP.
And then we have also featuring so here for e-mail, we need to display the description of the content
and the audio.
So instead of displaying the title, we don't have the title anymore, so we need to remove this title.
And I'm going to get the title later.
And instead of displaying the author, we don't need to display the author here anymore.
Instead, we need to display the content or the description.
So here I'm going to remove this if statement.
And instead, I'm going to say Echo, I'm then I'm going to echo the content.
You can also echo here.
Your semicolon.
You can also description above the contents, so I'm going to copy this content and then I'm going to
be listed above, and then I'm going to say name description.
This correction?
You can also echo the you or L you can visit here and then say you are ill.
And let me now save and let me get it over to the browser, but we have a problem here with this.
You are able to image.
So we need to get what we need to get the image.
So to get the image, we need to pass the image as well here with this.
So we need to say input and then we need to say text type is equal to text.
And then when you say value and the value is going to be equal to each B and then echo and then object
and we need to pass the you are able to image, you are able to image and then semicolon.
And we need the same name and the name is going to be you are able to image.
And finally, I'm going to add here the style I'm going to say style.
Display, no.
But we need to check whether it, whether it's set or not.
I'm going to say and and and then is set fast.
And then you are able to.
Image and we need to create a new variable called you are able to image so you elder image is going
to be equal to past and then you are able to.
Image.
And finally, here we need to say, if empty, we we need to say, if empty, you are able to image
you are ill to image, then display this else echo and then what we need to echo now is that mental
equity you are able to image.
Now let me see if everything.
Let me let me make sure that they don't have any problems.
So everything is fine here.
Here I need to close this bracket and everything is correct.
Let me click on file on this evil and let's say on over to the browser test.
Now let me go back and then let me refresh, and let's read one of these articles.
Let's click on.
Read more of one of these articles.
For example, Amy, click on, for example.
Let me click on this one.
Let me click on.
Read More.
And as you can see, it's going to display the news description, a news article and the you are out,
but it's being displayed in a small cart and we don't want that.
Since we are here displaying only one single article, we we needed to.
We need this article to take the complete screen width and to do that, to fix that, it's very simple.
All you need to do is that you need to say here column large 12 instead of four for 12.
If you say four, if you say, well, this is going to take the complete.
This is going to be centered, but in order to make it take the complete weight, we need actually to
change the course this year and this is this we need to remove the width because they have given this
a width of 18, or you can increase this to fifty four, for example, here fifty four, if you say
here, fifty four and refresh.
This is going to take a much bigger space so we can see it's going to take a much bigger space.
You can increase this further or even say one hundred percent, let's say let's give it one hundred
percent.
If you say 100 percent and refresh it, you take a much bigger space.
It's going to take the complete screen with space.
But this doesn't look good, so we need to decrease this.
So I'm going to decrease it to 80 percent.
If you say 80 percent, it's going to take 80 percent and it's going to leave some spaces from the left
and from the right.
And I think now it looks much, much better.
Also, you need to we need to display the title and we need to also add this you want to an anchor desk.
And by the way, here it's not being this.
It's not explaining the complete content.
The reason for this is because I'm using the free plan.
If you want more art, if you want to the complete article to be to be displayed here, you need to
get a rebate plan.
You need to get the pay plan from the service or from any service in order to get more in order to get
the full article here.
It's just going to display the first couple of sentences, unfortunately.
But if you want to you if you want to develop a a a commercial use application, then you need to get
a paid plan from here or from any service.
And then you can display the complete article and later I'm going to be working on more of the content
here.