So here is my php code:
$result = mysqli_query($con, "SELECT * FROM WW_temp");
$numrows = mysqli_num_rows($result);
if ($numrows!=0){
while ($row = mysqli_fetch_assoc($result) && $numOfPics >= 1){
$ImageFilename = $row["image"];
echo "$ImageFilename///";
$numOfPics--;
}
}
The output I am getting is ///////// (9 '/') when numOfPics is set to 3. There is definitely some fields in the column 'image' in the database. Is there anything wrong with the code?
echo "{$ImageFilename}///";?var_dump($row)); this should help you (and us) figure out what's wrong. Maybe also add a sample of theWW_temptable so we can get a better idea.