Skip to main content
added 44 characters in body
Source Link
Manatax
  • 4.2k
  • 6
  • 32
  • 41

This is what I used when I wanted to do something like that... a long time ago! =P

$sql = "SELECT image FROM table WHERE cond ORDER BY xxxx DESC LIMIT 5"; $result = mysqli_query($db,$sql); while($arraySomething = mysqli_fetch_array($result)) { echo "<img src='php/imgView.php?imgId=".$imagenes['image_id']$arraySomething."' />"; } 

Use the src of a dynamic < img >

EDIT: Looking at your code again, you already know all that you need...

This is what I used when I wanted to do something like that... a long time ago! =P

echo "<img src='php/imgView.php?imgId=".$imagenes['image_id']."' />"; 

Use the src of a dynamic < img >

EDIT: Looking at your code again, you already know all that you need...

This is what I used when I wanted to do something like that... a long time ago! =P

$sql = "SELECT image FROM table WHERE cond ORDER BY xxxx DESC LIMIT 5"; $result = mysqli_query($db,$sql); while($arraySomething = mysqli_fetch_array($result)) { echo "<img src='php/imgView.php?imgId=".$arraySomething."' />"; } 
added 75 characters in body
Source Link
Manatax
  • 4.2k
  • 6
  • 32
  • 41

This is what I used when I wanted to do something like that... a long time ago! =P

echo "<img src='php/imgView.php?imgId=".$imagenes['image_id']."' />"; 

Use the src of a dynamic < img >

EDIT: Looking at your code again, you already know all that you need...

This is what I used when I wanted to do something like that... a long time ago! =P

echo "<img src='php/imgView.php?imgId=".$imagenes['image_id']."' />"; 

Use the src of a dynamic < img >

This is what I used when I wanted to do something like that... a long time ago! =P

echo "<img src='php/imgView.php?imgId=".$imagenes['image_id']."' />"; 

Use the src of a dynamic < img >

EDIT: Looking at your code again, you already know all that you need...

Post Undeleted by Manatax
Post Deleted by Manatax
Source Link
Manatax
  • 4.2k
  • 6
  • 32
  • 41

This is what I used when I wanted to do something like that... a long time ago! =P

echo "<img src='php/imgView.php?imgId=".$imagenes['image_id']."' />"; 

Use the src of a dynamic < img >