I was wondering if i can clean this up a bit, i wanted to make a nested sql statement but am unsure how.
$serverfile = mysqli_fetch_array(mysqli_query($link,"SELECT `Server_ID`
FROM `FileServerFiles`
WHERE `File_ID` ='$fileid'
limit 1"));
$server = mysqli_fetch_array(mysqli_query($link,"SELECT `ExternalDomain`,`AccessFile`
FROM `FileServers`
WHERE `ID` ='".$serverfile['Server_ID']."'"));
i wanted something like this?
$server = mysqli_fetch_array(mysqli_query($link,"SELECT `ExternalDomain`,`AccessFile`
FROM `FileServers`
WHERE `ID` ='(SELECT `Server_ID`
FROM `FileServerFiles`
WHERE `File_ID` ='$fileid'
limit 1)'"
));