How to increment rank when same total marks is there using mysql query?

|
K K 2022-06-26 16:34:04
You are from which country??
K K 2022-06-26 16:34:20
The exam is very important to me
Abdu081680 2022-06-26 16:34:29
K K 2022-06-26 16:34:04
You are from which country??

American

K K 2022-06-26 16:35:12
Abdu081680 2022-06-26 16:34:29
American

Exam is not that much tough

K K 2022-06-26 16:35:39
So you guys can easily solve it that why I am requesting you all literally
Abdu081680 2022-06-26 16:42:15
Don’t worry everything will be fine
vu_lk_an 2022-06-26 16:52:29
Mosi_myh 2022-06-26 11:14:16
hi i have this code :

php
User::with([‘posts’,’advertise’,’blog’])->where(‘id’,1)->get();
how can i order posts and advertise and blog relation with created_at
i know i can do something like this :

php
User::with([‘posts’=>function($query) use($date) {
$query->where(‘created_at’,$date);
},’advertise’=>function($query) use($date) {
$query->where(‘created_at’,$date);
},’blog’=>function($query) use($date) {
$query->where(‘created_at’,$date);
}])->where(‘id’,1)->get();
i expect the order be like this :

2022-06-25
2022-06-25
2022-06-25
2022-06-24
2022-06-24
2022-06-24
2022-06-23
2022-06-23
2022-06-23

but instead i get like this:

2022-06-25
2022-06-24
2022-06-23
2022-06-25
2022-06-24
2022-06-23
2022-06-25
2022-06-24
2022-06-23

and its logical that i get the order like the second example that i gave,
but is there any way i can order the relations result like the first example ?

use order by in relations

Mosi_myh 2022-06-26 17:06:10
vu_lk_an 2022-06-26 16:52:29
use order by in relations

Thats wont work, but i already fixed it with merging the relations table together and then order them

Ohannesburg 2022-06-26 19:50:40
laravel_discuss-126887.jpg
hey guys, is there any expert can comment on these usage?
Is there any other approach to do it in a better way or am i using the proper way to do it?
Doniyorbek8069 2022-06-26 20:10:33
laravel_discuss-126889.jpg
This is my website on ubuntu server what is wrong
ualikhandulat 2022-06-26 20:12:04
You runned on hosting ?
Doniyorbek8069 2022-06-26 20:12:28
ualikhandulat 2022-06-26 20:12:04
You runned on hosting ?

No ubuntu server

ualikhandulat 2022-06-26 20:12:53
Set root path to public/
ualikhandulat 2022-06-26 20:14:17
Change host config file
sandeepacharya7 2022-06-26 20:37:05
CAN anybody answer this question in stackoverflow i’ve just posted?

https://stackoverflow.com/questions/72763775/how-to-increment-rank-when-same-total-marks-is-there-using-mysql-query?noredirect=1#comment128524116_72763775

How to increment rank when same total marks is there using mysql query?Stack Overflow
This is my query:
SELECT
`users`.`id` AS userID,
`user_tests`.`id`,
`users`.`profilePic`,
`users`.`firstName`,
`user_tests`.`userId`,
`user_tests`.`isFirstAttempt`,
`
Aman Sharma 2022-06-26 22:03:56
Anyone need laravel based web apps and eCommerce Setup i can make them at reasonable pricing.
Thanks
etekumoses 2022-06-26 22:17:58
Hey devs
What are you working on lately ?
Let’s hear from each one
Pritam Maheshwari 2022-06-26 23:08:23
Laravel installed,
When I am running in browser it is showing unable to connect,
Pritam Maheshwari 2022-06-26 23:08:44
laravel_discuss-126904.jpg

Pritam Maheshwari 2022-06-26 23:09:34
And if I am opening with live server it is showing
Pritam Maheshwari 2022-06-26 23:09:55
laravel_discuss-126906.jpg

Pritam Maheshwari 2022-06-26 23:10:05
Anyone can help
Pritam Maheshwari 2022-06-26 23:11:07
laravel_discuss-126908.jpg

lilbreezyy 2022-06-26 23:28:26
Did you download composer and xamp?
Pritam Maheshwari 2022-06-26 23:46:23
Yes
Othiyappan 2022-06-27 02:37:46
I need help on the below:
I’m using laravel sanctum for authentication, I have login with the username and password with rest api. After authentication I have token in my hand, using the token I need to open the other web URL in different browser using the authenticated token from JavaScript. Please help for this or reference code.
2022-06-27 03:05:24
Itech_programmer 2022-06-25 13:50:46
I need help with laravel has anyone encountered when i’m updating my data i’m sending PUT request but laravel see this request as GET

If it’s live, make sure you are using https://. The issue is usually caused when you use http:// them the server redirects to https

2022-06-27 03:10:26
Othiyappan 2022-06-27 02:37:46
I need help on the below:
I’m using laravel sanctum for authentication, I have login with the username and password with rest api. After authentication I have token in my hand, using the token I need to open the other web URL in different browser using the authenticated token from JavaScript. Please help for this or reference code.

You can store the token in localstorage with localStorage.setItem(‘auth.token’, token) after authentication. Then you need to add this token to the Authorisation header of every request.

E.g in Axios.

headers: {Authorisation: ‘Bearer ‘+ token}

Othiyappan 2022-06-27 03:17:14
2022-06-27 03:10:26
You can store the token in localstorage with localStorage.setItem(‘auth.token’, token) after authentication. Then you need to add this token to the Authorisation header of every request.

E.g in Axios.

headers: {Authorisation: ‘Bearer ‘+ token}

Window.open can be used?

2022-06-27 03:18:40
Othiyappan 2022-06-27 03:17:14
Window.open can be used?

If you’re opening the same domain, you should be able to access the local storage data that you stored.

Othiyappan 2022-06-27 03:19:37
Same domain port is different
Othiyappan 2022-06-27 03:21:29
How to set header using window.open?
arxnday 2022-06-27 03:48:29
Othiyappan 2022-06-27 03:21:29
How to set header using window.open?

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers

HTTP headers – HTTP | MDNdeveloper.mozilla.org
HTTP headers let the client and the server pass additional information with an HTTP request or response. An HTTP header consists of its case-insensitive name followed by a colon (:), then by its value. Whitespace before the value is ignored.
isaackumi 2022-06-27 04:32:22
https://www.youtube.com/watch?v=XNowwf5VwX0

Host Your Website For Free with SurgeYouTube
Learn how to host your website for free.

In this tutorial, you will learn how to host your website (HTML , CSS, and javascript ) code to a free hosting server.

with surge you can host your website in less than 30 seconds. To host your website for free with surge, make sure you have nodeJs installed. Once you have nodeJs installed, you can run a simple command on your terminal to deploy your free website on surge

⭐️ Timestamps ⭐️
⌨️ 0:00 – Introduction
⌨️ 0:36 – Nodejs Installation
⌨️ 0:58 – Introduction
⌨️ 1:22 – Verify npm version
⌨️ 1:50 – Install surge with npm
⌨️ 3:15 – Deploy to surge
⌨️ 4:06 – Verify deployment
⌨️ 4:37 – Conclusion

—————————————–
⭐️ Link to template: https://bootstrapmade.com/logis-bootstrap-logistics-website-template/
⭐️ Link to download nodejs: https://nodejs.org/en/download/

—————————————–
Free Hosting
Website hosting
website Deployment
Deploy app for free
static website deployment for free
Host
website
free
surge
host website
web hosting
simple web hosting
web hosting in minutes

FAQs:
How to host my website for free
web server for hosting
Deploying website
Host a static website
Host HTML, CSS, website for free
Unlimited free hosting
How to put website online for free
Free domain for website
easy website hosting
Npm package to host a website for free
Put app online for free
How to make my website accessible online for free
Free website hosting for beginners
Free website hosting for absolute beginners
Deploy or host website with no cost
No cost or free hosting

niyachhim 2022-06-27 05:13:34
laravel_discuss-126923.jpg
Hi everyone I got error in xampp for write .htaccess
|