You have an endless loop because you've coded one:
while($mysqli_row){
?>
<h1>
<?php
$photos= eval('return $db_row_getSearched'.$User_x.'["photo"];');
echo $photos;
?>
</h1>
<?php
}
Your loop continues based on the value of
$mysqli_row
, but nowhere in the loop does that value get changed; so once entered, you never leave it. Without spending a lot of time (and asking you a lot more questions about your databases and what you're trying to do), I've a suspicion that if you change
while
to
if
you'll get the result you want - though as other respondents have said, I would strongly recommend finding an alternative approach!