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 already have the info i need in the database. I know how to display the data on the main page, but i only show a small part of info there.
What i need is when i click on the read more i want it to link to a full info page.
How to i accomplish that? Do i have to make/generate a html file for every car i have and link the info from the main page to it? Or what is the correct technique for achieving this ?
It sounds like you want to have a list of cars on a main page, and then clicking on one of these cars would bring you to a details page with more information about that specific car.
This is a common situation. You'd simply have your main page query your car table and format that as a list of cars, each with a link to a details page like /details/12345 where the number represents the ID of the car you want to see. Then your details page would get the ID from the URL, query your database for details of that car ID, and assemble the page with those details.
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 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 5 years ago.
Improve this question
First of all I must say that I am a complete rookie at web development(2 months working on). So forgive me about any "stupid" comments or questions.
I have a table which holds date stored in MySQL database. I use a form to send these data to the table.
My question is:
"Can I create a hyperlink on each ID of the table so when I click on it, it will display the data of the record BUT on the same page?"
All I could do was to display the table in another page.
First when someone read "responsive table" normally we think on responsive design, maybe the correct title would be data managament from tables.
To answer your question, I would say yes, you can create a hyperlink on each ID display the data, this hyperlink would make another query on the database, the way you want to do i would use AJAX that's really complicated at start, so I recommend you to search some tutorials.
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'm current browsing the website below
http://www.prc.gov.ph/licensure/?id=27
To display the list, select (any) Exam Name and Exam Date then Press Seach.
If the list is very long, it will generate Page numbers at the bottom of the page.
Is it possible if anyone can teach me how to display the entire list so that I can copy and paste it in Excel?
I am trying to get the entire list and that's it. Please help
The page above use Ajax call to fetch data, and it function paging with a limit of 20. It do not have view all. So you can not display the entire list.
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
How would I go about creating a table that is linked to a specific user that can be edited by that user? Basically a user would log in, and they would see a button that took them to a page with a bunch of specifically labeled input boxes. They could put the appropriate data into the boxes and save it. There should also be a drop down menu that contains presets for the data. At first I thought to use a database, but here's the kicker: They need to be able to add and delete input boxes. To recap, the user needs to have their own specific page that allows them to change data in input boxes, as well as add more fields if they require it. This all needs to be stored and linked to their user. How can I do this?
You should realize that in PHP / MySQL. I do not know where you are in your project, if you have already achieved your login pages / sing_up / index ... etc.. but you should start with that. There are good tutorials on the subject, like this one.
http://net.tutsplus.com/tutorials/php/user-membership-with-php
EDIT:
To let user edit their info, look at this tutorial:
http://www.webestools.com/scripts_tutorials-code-source-14-members-area-system-in-php-mysql-members-users-system-area-log-sign.html
After, you will have to ajust your actual structure to the one they give.
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 have built a login application (App), and I'm thinking of implementing another feature.
I want to show users specific content depending on which user is logged in. For example, say I'm user "Dream". When I log in, I should only see the files that are related to me, such as my downloads, images, and so on.
How could I implement this?
If you have data in database, users has probably its own ID. Personalized content, as images for example, then has to have user ID mark (it creates logic connection). After user is logged, save its ID into session. After he show page with images, pick up user ID form session, select images with user ID mark from database and display them.
If your data are not in database, principle will be the same.