how to show | hide links for certain time [closed] - php

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 8 years ago.
Improve this question
I am writing one add on for my ptc website,using php and Mysql, with the following features:
1: user will click the link
2: user will copy the output url
3: paste it in the text field
4: if the pasted value matched with the existing value, it will credit the user account.
I have done above all:
what i want to ask is.
when a link is clicked , it should not appear to the same user for certain time , i.e. 1 hr or 4 hrs. or 24 etc etc
this is sort of manual surf for web sites.
Thanks for suggestions:

Making comment my answer, as OP seemed to like it:
You are going to have to keep a record (in the db) of when the user clicked the link. Then check against that when they come back. That's the most reliable way to track it...

Related

How to edit the search result in Google? [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
Take yahoo as example,
how to control the following? (to make it simple, the result apply to the all countries)
title
description
can select which six page to show in search result?
six sub-title and their short description
Studied a while and found that the result are auto detect , so how to manually change them and how to make sure the changes since it take some time before the new search result is take effect?
http://support.aarcade.net/how-do-i-update-or-change-the-google-search-results-for-my-site/
thanks a lot
Title for each page including sitelinks (those six pages underneath) is from <title> tag in the page <head>.
Same goes for Description, those are from <description> tag.
Keep in mind that Google can alter or change them completely based on the page content and title/description provided.
You can't choose witch sitelinks to include, Google choses them automatically. But you can demote them with Webmaster Tools.

How to set a parameter in php, and how to get its value? [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 8 years ago.
Improve this question
How can I see the Edit Mode page is the link is written like:
<small><i>Edit Mode</i></small>
In the above case, if I click the Edit Mode button in the homepage, does it mean editz will be assigned a value as 1?
Another question is if I have three php files a.php, b.php and c.php, which all check isset($editz), how can I redirect the page to a.php, rather than file b or c if I click the Edit Mode button?
Sorry maybe my question is too simple a naive, but I am a newbie to php, it is my first time tough php code. Please be kind to share some light:)
Just to give some sort of answer to this, spanning from the comments:
Anything following a ? in a URL is a query string, and the parameters (each separated by &) can be accessed with the $_GET['parameter_name'] function. In this case, $_GET['editz'] was needed.

Website functionality (data to html generating) [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 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.

User Editable Table [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 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.

make new page without standard button [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 8 years ago.
Improve this question
i want program chatroom and private chat between user .
in click on each user name in chat sidebar open new page like chatbox with beautiful layer and without standard button like close or minimize .
example : pic
Code
User1
User2
User3
how i can design this page and open this page when click on name?
Well If I understand you correctly you are indeed looking to create a web-based chat application (like the Facebook chat), am I right?
We won't be able to provide code for you, that is your job, but instead I could give you a resource to a tutorial that you mind find useful.
http://net.tutsplus.com/tutorials/javascript-ajax/how-to-create-a-simple-web-based-chat-application/
Or you might find any useful script here http://php.resourceindex.com/Complete_Scripts/Chat/
Best luck to you!

Categories