I want to take this SELECT query and pass it to the variable $names, then have $name equal to the updates.update_id. It's not working.
<?php
$names = $modelbio_names['update_id'];
// QUERY THE DATABASE FOR THE MODEL NAMES ON THE [BROWSE VIDEOS] PAGE
$browse_modelbio_names = "SELECT updates.update_id, models.model_id, first_name, last_name, updates_models.update_id, updates_models.model_id
FROM updates, models, updates_models
WHERE updates.update_id = updates_models.update_id AND models.model_id = updates_models.model_id AND updates.update_id = $names";
$browse_modelbio_names_query = mysqli_query($connection, $browse_modelbio_names);
// TEST IF THERE WAS A QUERY ERROR
if (!$browse_modelbio_names_query) {
die("THE QUERY FOR THE MODEL NAMES ON THE [BROWSE VIDEOS] PAGE HAS FAILED.");
}
?>