Like on title... how to display row data from inner join table if name of the row are the same?? but data is diffrent?
$sql = "SELECT fv.name,fvcount.name,fvcount.datew,fvcount.u_uid
FROM fv
INNER JOIN fvcount ON fv.u_uid = fvcount.u_uid ";
$result = mysqli_query($conn, $sql);
while($row = mysqli_fetch_assoc($result)) {
echo $row['u_uid'];
}
Result will be printed, but on both table 1 of the rows name is like: name
So if i put
$row['name'];
i will have output of inner join table
How to get output from main table and inner joint table? I can't change name of the row...
Any clue?
fvcount.name AS name1, fv.name AS name2then use name1 and name2.