Linked Questions

4 votes
3 answers
4k views

in Wordpress template's function.php following code is working well // Function accepting current query function my_change_order( $query ) { // Check if the query is for an archive if($query-&...
eapo's user avatar
  • 1,091
0 votes
1 answer
2k views

I am stuck with a query builder in laravel 8 DB::table('users') ->join('contracts', 'users.id', '=', 'contracts.user_id') ->join('roles', 'roles.id', '=', 'users.role_id') ->...
calin24's user avatar
  • 1,021
-1 votes
3 answers
469 views

$query = ('SELECT tb_imam.*, tb_bidang.bidang FROM tb_imam JOIN tb_bidang ON tb_imam.bidang_id = tb_bidang.id WHERE tb_imam.status = "Pengerja" ...
Edwin Nick's user avatar
0 votes
3 answers
239 views

I have two tables. One of them named files and there is al list of all files. the second table called payments, and there is in there a list of payments for some files. Payments: id | fileid | {...} ...
HTMHell's user avatar
  • 6,036
0 votes
3 answers
98 views

I have a query select c.CommentId ,c.CommentText , c.CommenterId , c.CommentDate , u.first_name , u.last_name , i.ImageName , i.Format from comment c join users u on c.CommenterId = u.user_id ...
whatever's user avatar
  • 342
0 votes
4 answers
106 views

I am attempting to join two tables, and also order the query results by one of the columns within the table I am joining. Everything works great until I add ORDER BY cm.num, at which point I get this ...
user3746428's user avatar
  • 11.2k
0 votes
4 answers
86 views

I'm having a problem with my Select command, first of all, I need to show all the hours that are different from the idHour on other table here's the code: SELECT DISTINCT Hours FROM agenda_hours A ...
Vinicius's user avatar
-3 votes
2 answers
98 views

I am absolute beginner in creating database and I only know that we can use, "SELECT * FROM users WHERE username = '$username' and password = '$password'"; but, what if there is multiple ...
Zubli Quzaini's user avatar
0 votes
1 answer
92 views

How do i fetch multidimensional array data in my table. As per in my image foodname, quantity, price should be fetch in my table.
J P Senthil Kumar's user avatar
1 vote
2 answers
65 views

My database has 3 tables i wish to access in the select query but I cannot seem to get it to work. Selecting from 2 tables works fine so I know everything else is working apart from my code for ...
phpdrivesmemad's user avatar
0 votes
1 answer
60 views

I execute Query A, it gives me the result i.e 4,5,6. And If I use that result directly into the Query B in WHERE IN clause, it gives me the perfect result again. But If I use both the query combined ...
user3831445's user avatar
1 vote
1 answer
25 views

I have the following MySQL query: SELECT u.id, u.ap, q.quests FROM users u JOIN( SELECT count(quest) as 'quests', user FROM active_quests WHERE user = 143 ) q ON u.id = q.user ...
ALR's user avatar
  • 441