Creating new php page from admin panel [closed] - javascript

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 months ago.
Improve this question
I want to make a blog page using php. What I'm stuck with is how to create this page when I want to create a new post from the admin panel?

You will need to create a table of blog posts, and each record will be a stand-alone blog post that you display as a standalone page.
You then have a page, e.g. blog.php, which takes an id (or some form of reference to the blogpost you want to display), query the database for the given blog post and render the page.
I assume you have not posted any code / what you have tried because you have no idea how to get started, so I will also not give you any code, the description above should be enough for you to get started.
I see that you are a new user, so please in the future refrain from asking vague questions, without specific information as it is not allowed.

Related

Can data from a db be displayed on a web page? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have a very simple question: when loading a web page the Page_Load function is called so that the page can be loaded. In this function can I insert some code that allows me to select and view in the browser the data present in an external database?
This answer could be of help.
You could then write a script that fetches data from a database. How you do that is a question in it self but I can recommend checking out w3schools which is good for learning plain Javascript in the beginning.

How to register a user using only javascript/ajax or jquery [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I'm trying to register users using only javascript,ajax or jquery, i need to save the information of the users somewhere where i can get it even after the browser is closed,and the new information can't overwrite the old one.
I already tried saving into a xml file or txt file, but without success.
Check these out, one of it might help
http://www.w3.org/TR/IndexedDB/ - Indexed DB
http://www.w3.org/TR/webdatabase/ - Web Sql
http://www.w3.org/TR/webstorage/ - localStorage
You can as well try out a JavaScript Database here
http://www.taffydb.com/ still trying it out myself, hope this helps.

I want to add the button of screenshot of my customer's page and then want it to save in a database and show it in a another page as dashboard [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I tried using java script but it didn't work. I also tried php imagegrabscreen() but it demands URL whereas I have a customer's page URL different for everyone ex: /member.php?email=shady#gmail.com&code=A101_123 .
Basically I want to store user's screenshot so he can be able to see those images of his activity. So any solution?
I would recomment to take a look at html2canvas. It is a JavaScript solution that works on the client side. Only problem: It takes the current DOM from the user and builds a picture with the browser engine. So it is not 100% accurate, but pretty close.

Get Posts from Facebook Page PHP [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
So I've done a lot of searching on the world wide web for this but I can't seem to find what I'm looking for. I want to be able to get all of the posts in order of upload from a specific Facebook page without needing a user to login. I would want all the data coming in a JSON format and using either PHP or if needed Javascript.
I know I don't have any code but I've spent many hours trying to get the answer behind this and asking here is my last resort really. Thanks for any help :)
What you are looking for is in the official Facebook docs, including example code: https://developers.facebook.com/docs/graph-api/reference/page/feed#read
It´s actually the first entry when you search for "get facebook page posts" with Google ;)
Without user login, you can only get posts of a Page if it´s not restricted by age or location. You can use an App Access Token for that.
More information about Tokens and how to generate them:
https://developers.facebook.com/docs/facebook-login/access-tokens
http://www.devils-heaven.com/facebook-access-tokens/

Types of output that will work for a callback [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I am currently working on a small nodejs project that is responsible for returning search terms from a twitter feed. I have the search working however because I am new to this I am having problems displaying this on my webpage. The search information I want to display is being held by a callback from my function and I want to output this information. Keep in mind this information is ascertained after the webpage is loaded and I think that is why response.write(information); is not working for me. However if I do console.log(information); I do get the information I want but it's just not where I want it. Can someone help me out with outputting please.
I ended up solving this by using JSON.stringify(information);
You are right, it's very likely that once you have returned your webpage the response will be closed.
2 options:
1) you load your webpage first on 1 static route (using static middleware) and this web page then does an ajax call to a second route which returns your information.
2) you don't return your webpage until you have retrieved your information. I'm assuming your information will need to be displayed on this webpage which means you'll have to turn your webpage in a template and merge it with your information. You can use a Jade template or underscore template for example.

Categories

Resources