1 - 15 of 15
XtremeGamer572TechdoodleXtremeGamer572Awesome! I've never done javascript but your code is very easy to understand and I see how it works so well done! I'm a php guy, my friend does styling for our website :3
Nice!
You might be interested in something I've done with php:
http://plugins.darkender.com/testing/randompokemon/
Ah very nice, how does it work? (here's a guess from how I have a randomized post generator)Click to reveal<?php include('functions.php');
$randimg = substr(random_pic(), 2);
$randimg = substr($randimg, 0, -4);
header('Location: '. "image.php?i=" . $randimg);
?>
Then image.php includes imageget which is:Click to reveal<?php
include('base.php');
if (!isset($_GET['i'])) {
$dirname = "images/" . "default";
} else {
$dirname = "i/" . $_GET['i'];
$picname = $_GET['i'];
$result = $mysqli->query("SELECT likes FROM images WHERE imgname = '$picname'");
$result = $result->fetch_row();
$likes = $result[0];
};
if ($likes == "") {
$likes = 0;
}
$image = ($dirname.".png");
echo "<h3>This image has $likes like(s)!</h3>";
echo "<a href='{$image}'><img src='{$image}'. width=1100px/></a>";
?>
*EDIT* just saw dm
1 - 15 of 15
© 2010 - 2026 Cyprezz LLC
www.planetminecraft.com
Planet Minecraft has a Progressive Web App!
get_app Install PMC APP
Already a member? Sign in
By continuing, you agree to Planet Minecraft's Terms of Use and Privacy Policy
