i have this VIEW MODAL it views the data from the table by ID my problem is if i add an update (as you can see in the image) it doesnt show to in the table updatedby and update: i tried joining in mysql but it only fetch the dateupdated column in my 2nd table. here is my second add_update table and this is my first table document table the foreign key is document_id as you can see.
here is my query in mysql
$query = "SELECT document.document_id, document.document_name, document.document_type,
document.document_from,document.document_to,document.document_recieved, document.document_date,document.document_dater,
document.document_status,document.document_signatories,document.document_remarks,document.document_encoded, add_update.document_date_update,
add_update.document_update,add_update.document_updatedby FROM document LEFT JOIN add_update ON document.document_id = add_update.document_id WHERE
document.document_id = '".$_POST["document_id"]."'";
$result = mysqli_query($connection, $query);