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 8 years ago.
Improve this question
I am a newbie and have been programming this site for a school. And I have been stuck in a part where I have to show the logged in users the subjects he/she is currently enrolled in. I am thinking of making it appear using Ajax with a click of a menu button on the left side. So how do I populate this with a card for each subject he/she is taking? The subjects is stored in a MYSQL database. I am currently using Codeigniter Framework. Would you suggest using scripts like Angularjs? I am very new to this. Here is the sample site:
If you are very new to this, I suggest you first use regular GET/POST based interactions with the site so that clicking on a button will reload this page, or a new one with the relevant information.
Once you have moved from total newbie to a novice/rookie, you can start converting some of those areas to Ajax.
Once you become fully comfortable with that, only then should you think using JavaScript frameworks like angularjs or backbonejs.
Its an incremental skillset acquisition, and is always best done like that.
All the best!
Related
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'm trying to learn, how to make a php content management system. I'm watching tutorials and reading documents about that but I couldn't understand something. For example there is 5 different page design.
Home Design
About Us Design
Products Design
Gallery Design
Contact Design
When I click new page button what should happen backside. Should it create a new php file or just insert a new line to the database. And for example when I want to create products pages at 3 different category. Should I need 3 products.php file or just one file for products design. And when I want to add a page should I design 5 different admin interface for each page? Actually I am not asking for code. I just want to learn the best way to do these things.
Thanks all :)
You should make a table in your database, call it "pages" and add columns:
id
title
content
published_date
status
and any other.
Then pass the page id via url (?p=123) and use query to show the relevant page via database.
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 8 years ago.
Improve this question
Good day! I am fairly new in PHP and I am trying to develop a website that can retrieve and display stored information from the database. The catch is, the information that will be retrieve will be based on the selected value from the list box (the list box you can create in html).
I have one list box that contains all the names of the users and would like to display all the related information for that user on a specific table in my database.
To be completely honest, I have no idea how to do this. I can retrieve all the values from a specific table in my database and that's all I know.
Hoping someone would be patient enough to teach me how to do this or guide me if this is even possible in PHP.
Thank you in advance.
You will need to read on doing database operations using PHP with PDO.
Once you've done that, the rest will be pretty easy, you will have to learn how to work with forms with PHP,
which you can do here.
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 need to create pagination and it should not have page numbers as if I have it then I need to load all data at page loading.(I was ordered to do so)
I am little bit lost. Don't know where to start Even a little help is highly appreciated.
using zend framework 2(MVC)
new to php and zend
Prefer not to use library
I am assuming, What you mean is that you cannot have page numbers listed with the results on your page, but just a forward and a back button. You keep track of what offset/limit results are being currently viewed by user, and depending on if the user clicks back/forward, you will send an appropriate request to server with offset and limit as parameters. The server based on php/Zend should return results based on this offset and limit.
I have had a precursory look at Zend Pagination and it seems to me that it should work for you.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Ok, I have built a custom CRM web app for a client using PHP and MySQL. The app seems to work really well for them and so I have decided to create a commercial version open to the public.
The basic idea of it is that it takes the data captured from a website and then populates the database with that. At the moment there is simply and insert statement on the front end of the website.
The thing is, I want people to be able to sign up to the service, create an account and customise it themselves to suit their needs. My idea is that once they sign up they would be provided with a form action that submitted to their account when installed on their page.
Regarding tables in the database etc, currently there is simply a customers table as there is only one website using it. If people being to sign up and use the service, do i create a new table for every account? This might be right but it seems a bit silly to me. Or is there a better way of going about this?
Usually, it's better to add a customer_id column, and add a WHERE customer_id=12345 clause to all your MySQL queries. Having a separate table per customer is certainly possible, but it may not scale as nicely.
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 8 years ago.
Improve this question
I want to build a chat application using PHP. Does anybody have any idea about it? If so please reply.
The chat application must be user friendly, multiple chatting scenario must be there.
Sounds pretty straight forward.
Ajax-polling front-end -> chat_handler.php -> backend database
Done.
If you want to create a "Shoutout" type public chat system, it's pretty easy to achieve via PHP/MySQL/jQuery.
You just have to take input from a form. jQuery will submit values to a database via a backend php file.
To refresh the submitted messages after regular intervals you can use setInterval function availabe in jQuery.
Maybe this will help:
http://net.tutsplus.com/tutorials/javascript-ajax/how-to-create-a-simple-web-based-chat-application/
just buy one if you don't want to code. Comet Chat is a good one, like Faceb00k. Just google