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 2 years ago.
Improve this question
I have a web site to analyze Instagram account and create report, and there's a function to display report for a particular dates range.
If I have date selected, then URL become ${base_url}/${date_start}/${date_end} , i.e.:
https://www.example.com/report/account-name/2020-02-01/2020-03-31
I want show historical data only to my premium users, so I need a way to check if URLs contain the value
/${date_start}/${date_end}
If "YES", then I'll show a notice to invite users to upgrade their plan.
I only miss the code to check IF URL contain /${date_start}/${date_end}
How to do that?
ps: dates is always wrotten like YYYY-MM-DD , so this should make thing easier, I suppose.
that is a regular expression you are looking for
if (preg_match('/\/\d\d\d\d-[01]?\d-[0-3]?\d\/\d\d\d\d-[01]?\d-[0-3]?\d/',$_SERVER['REQUEST_URI'])) {
echo 'dates found';
} else {
echo 'dates not found';
}
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 1 year ago.
Improve this question
I would like to know how I can create a list of top donors, in which the user who donates the most is in the first position of the list.
In order to donate, you must be logged in
How can I do something like that using php and mysql?
This is only how much i understand your question.
First you need to create table for donors which the storage of their data, and 2nd is to make table for donate which holds the donator.
Then to sort the donator by donated the most, just use COUNT sql query to get the highest donate number.
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 5 years ago.
Improve this question
I want to know how can I show pages that contain a specific word written by random user in input text, because some contents are static.
P.S : If what I'm talking about is deprecated, can you propose to me a best solution for doing such functionality?
The best option is to keep your data in database. It will allow you to search and display content dynamically. Also in case you have some static pages, you can put them in database just for searching purposes if it's solution in your case.
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 used measurement protocol to track opened emails <img src="https://www.google-analytics.com/collect?v=1&tid=UA-XXXXXXXX-X&cid={uid}&t=event&ec=email&ea=open&uid={uid}">. Now I want to get every uid who opened email and all their sessions. Is it possible to achieve that? I did not create any custom dimensions before
Nop, it's not possible, that is the main reason to duplicate the user id as a Custom Dimension. You can try to look for another way to disaggregate with other metric, but i think that will not be the same.
https://developers.google.com/analytics/devguides/reporting/core/dimsmets
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
I have a school website, I have uploaded the students examination result to the database but now I want to make a search bar by which can the student search their result by typing their roll number.
please someone give me the code. please
#wajahat-aftab - you can always find a great tutorial to do this. Here are few of the links
https://www.youtube.com/watch?v=N_S7_wg87GU
http://html.net/tutorials/php/
http://www.htmlgoodies.com/beyond/php/article.php/3472391
Basically you need to get the data, manipulate it and send it to the HTML page. Once you get the data in HTML you can present it any kind of look-n-feel as per your needs.
You can not expect exact answers for such questions - so I suggest you to be more specific with QUESTION and make sure that you also share the source code that you tried so far.
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 have an eBay store that I'd like to be able to Search through JUST that store and return the results.
I found the "findItemsIneBayStores" call, but the documentation is kinda confusing(At least to me) and I can't find a good example so I can see how it works, I was hoping that someone could explain to me how it works.
Thank you,
Brandon
Use the storeName parameter in your findItemsIneBayStores call:
The name of the eBay store to search. Returns all items in the store, or can be used with keywords to search for specific items in an eBay store. If you do not specify keywords, you must specify storeName.