I have two tables named members and orders.
Members table
Orders table
In my php codes, I wanted to update the columns in Orders table based on members_id which is a foreign key for members' id table.
This is how I put it:
$query = "UPDATE orders
SET package='$package', comments='$comments', refno='$refno', status='no'
WHERE members_id.username='$username'";
I'm stuck at the WHERE query part.