我最近开始研究 php,我不知道为什么 while 循环不能正常工作,问题是 $sexy['post_id'] 的值没有得到更新。我的桌子上有 2 行
$getpostId = "SELECT post_id FROM likersTable WHERE executed='0'";
$postIdDetails = mysqli_query($dbConnect,$getpostId)
or die('Some error in post id');
$getAllUserId = "SELECT * FROM likersTable";
$allUserIdDetails = mysqli_query($dbConnect,$getAllUserId)
or die('Some error in all user id');
while($sexy = mysqli_fetch_array($postIdDetails)){
while($shitty = mysqli_fetch_array($allUserIdDetails)){
echo 'User Id: '.$shitty['user_id'].'<br />';
echo 'Post Id: '.$sexy['post_id'].'<br />';
}
}