I would like to know how to I retrieve information from another database table...
Instead of keying in manually, I would like to retrieve data directly from the logged in user row. For the user table, i have outletid in it.
Outlet ID: <input type="text" name="outletid" > (Manually)
Outlet ID: <?php echo $row['outletid']; ?> (Is this how it looks like if I want to retrieve data another table)
I think it has got to do with join table but I'm not sure of how to do so.
Instead of keying in manually, I would like to retrieve data directly from the logged in user row. For the user table, i have outletid in it.
Outlet ID: <input type="text" name="outletid" > (Manually)
Outlet ID: <?php echo $row['outletid']; ?> (Is this how it looks like if I want to retrieve data another table)
I think it has got to do with join table but I'm not sure of how to do so.
Comment