Matching data in sql and display it through php [closed] - php

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 do matchmaking website.
Currently I have two tables which are user profile and their partner profile(which is the requirement that those users hope for). I have to match this two table by using mysql and php. maybe fuzzy logic?
For example, user A hopes for tall partner, then system will match the partner that closes to this user and display on his wall.
But the problem is, i had do many research and still run out of idea of how to do it. Can anyone please help me or give me some advices?Thanks.
Below is what i trying to do but still have no idea.
coding

I think you need one sql:
select * from user
join
partner on
user.user_id = partner.user_id
where
user.email = 'some#email'

Related

How can I create a list of top donors using php and mysql? [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 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.

How to get the details from mysql using php as soon as user submits if there are millions of users [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 5 years ago.
Improve this question
If the user submits details I will be able to save it in mysql but how can I get only those details on screen. The latest one. Suppose there are millions of users there might be some disturbance for slecting from mysql as so many users submit at a time. So can I any one suggest me how can I overcome this
If you want to get the details of that specific user you can give some kind of token generated randomly or UUID to this user when he enters the page and after that you will be able to do a SELECT with WHERE clause to get this information in a easy way or if you want get the last one from your table maybe you can use LAST() on mysql SELECT LAST(columnName) FROM Table;

How to setup database for friends/followers for a social community site using php/mysql [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
everyone, can someone please help me out on this: I am working on a social networking site as a class project, but I can't seem to find a way to setup friends and/or follower/following database. Please help. Thanks everyone. I am working with PHP/MYSQL.
You can create something like this of course you can add/rename columns.
user_table
user_id
friends_table (Combination user_id_1/user_id_2 unique key)
user_id_1 //Friend
user_id_2 //Friend
follower_table (Combination user_id_1/user_id_2 unique key)
user_id_1 //Follower
user_id_2 //Following

How to create users like students and professors on MySQL? [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
I'm a newbie with PHP and MySQL. My project is about creating a website online on which I can put my school friend's grades and manage them. The problem is that I don't know how to separate users students/teachers.
I got an idea but still not clear. If in login page a make a radio button and add on it like this: "Student or Teacher". If they choose teacher I must test teacher's accounts to login in them to midify page.
You should look into the user/group/role pattern. You'll enter individuals into groups and assign roles to groups. You'll have to decide if you want one role per individual or many.

How can I Print a result on webpage using php getting from MySql database [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
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.

Categories