Je moet ingelogd zijn om te stemmen.
<?php session_start(); include('config.php'); $id = $_SESSION['gebruiker_id']; $sql = mysql_query("SELECT COUNT(klikid)FROM kliks WHERE klikid = '".$id."'")or die(mysql_error()); while($show = mysql_fetch_assoc($sql)){ echo'Jij hebt <b>'. $show->klikid .'</b> kliks'; } ?>
<?phpsession_start();include('config.php'); $id = $_SESSION['gebruiker_id']; $sql = mysql_query("SELECT COUNT(klikid)FROM kliks WHERE klikid = '".$id."'")or die(mysql_error()); while($show = mysql_fetch_assoc($sql)){echo'Jij hebt <b>'. $show->klikid .'</b> kliks';}?>
# <?php session_start(); include('config.php'); $id = $_SESSION['gebruiker_id']; $sql = mysql_query("SELECT COUNT(klikid)FROM kliks WHERE klikid = '".$id."'")or die(mysql_error()); echo'Jij hebt <b>'. mysql_result($sql, 0) .'</b> kliks'; } ?>
#<?phpsession_start();include('config.php'); $id = $_SESSION['gebruiker_id']; $sql = mysql_query("SELECT COUNT(klikid)FROM kliks WHERE klikid = '".$id."'")or die(mysql_error()); echo'Jij hebt <b>'. mysql_result($sql, 0) .'</b> kliks';}?>