query(" SELECT * FROM wallpaper "); // Get Two Random IDs $id1 = rand(0, $wallpapers->rowCount()); $id2 = $id1; while ($id1 == $id2) { $id2 = rand(1, $wallpapers->rowCount()); } echo ""; // Get Wallpapers From IDs $wallpaper1 = $dbh->query(" SELECT path FROM wallpaper WHERE id = " . $id1 ); $wallpaper1 = $wallpaper1->fetch(); $wallpaper1_path = $wallpaper1['path']; $wallpaper2 = $dbh->query(" SELECT path FROM wallpaper WHERE id = " . $id2 ); $wallpaper2 = $wallpaper2->fetch(); $wallpaper2_path = $wallpaper2['path']; ?> Experiment 2: CLOSED - elementary Labs

elementary Labs: Experiment 2

This experiment is closed.

Choose the image you think looks better.

You can use the left and right arrow keys to choose the image on the left or right.

Image not showing up? Click here to reload, or you can hit the up arrow key.