I'm not understandable why this code below not print thing that I want to. It should have printed statement "Please, your post is waiting our approve..." after while loop statement. In this case It have printed before it. Why is it?
Full Code: Full Code Sorry because I'm programming on localhost, so that you cannot execute to display. But I have screenshot my screen to express it. Please help me. Thank you very much
if(!move_uploaded_file($temp_name_of_file,$target))
{
echo "<p style=\"color:red;\">Cannot move file from tmp folder to ".MY_IMAGE_PATH_NAME."</p>";
}
**//I'm facing trouble at following code of this comment//**
**else
{
echo "The posts have been approved:";
while($row=mysqli_fetch_array($tableID))
{
if($row['Approved']==1)
{
echo "<table><tr><td>".$row['id']."</td>";
echo "<td>".$row['first_name']."</td>";
echo "<td>".$row['last_name']."</td>";
echo "<td>".$row['email']."</td>";
echo "<td>".$row['Describe_them']."</td>";
echo "<td>"."<img src='".MY_IMAGE_PATH_NAME.$row['Upload_Image']."'>"."</td>";
echo "<td>".$row['Have_you_seen_my_dog']."</td>";
echo "<td>".$row['Other']."</td>";
echo "<br><br>";
}
}
echo "<h4 style=\"color:green;\">Please, your post is waiting our approve...</h4>";**
mysqli_close($cdb);
}
}
else
{
echo "<h1>You already register this account </h1>";
}
Aucun commentaire:
Enregistrer un commentaire