Skip to content
Advertisement

Tag: sql

Find the names of last queried tables

I have a query inside my PHP program like SELECT table_a.firstname, table_a.lastname, table_b.english_score, table_b.maths_score FROM table_a INNER JOIN table_b ON table_b.student_id = table_a.id …

Create a table for each user with their ID

I have a problem with a website that I am currently creating that I need a table for each user but it does not work. I have tried to create a table during registration or the first login, which also …

PHP SQL get values with complex checkbox filter

I have 3 tables product product_feature feature In the first one I have my products, the second one I have the id to the product and the id to the feature and the 3rd one I have the features that can be different colors, sizes, material… I built a filter menu with Color blue, red, white, black… Size XL L

Update database with a live choice made by client

How to update a specific cell in phpmyadmin with jQuery after appending a specific div to a group, code is below the problem is when the item getting updated in database, it became always Group 2 which is the second update. So how to update the database with the selected group on a side question is it better to use

fetchAll only fetches one row from two joined tables

I have a join of two tables. Actually the code and the fetching worked fine before I inserted : and But now it only fetches the first row even though there are two: I used fetchAll and a foreach loop so I just don’t see why it is only fetching the first row. Maybe someone can help, thank you! Answer

Advertisement