I have two tables, one user_info:
table user_info {
user_id ;
fname;
laname;
contactno;
address;
}
And photos:
photos {
photo_id;
user_id (foreign key);
photo_name;
caption;
}
Please tell me how I can use an INNER JOIN query in PHP/MySQL, when e.g user_id = 11 click on photos and then query will join the table for resultant user_id.
Where
<fields>is the list of field names you require