Open dvkdesigns opened 6 years ago
are you receiving any error? As far as I can tell it works fine
i am receiving Access denied for user 'root'@'localhost' (using password: NO) how to solve it ? not inphpmy admin in login form for admin wen i type the user name and pass
yes there appears to be. It is fetching info but there is no html
yes there appears to be. It is fetching info but there is no html
Did you get the html?
Has anyone found a solution to the blank Vote.php page
wanted to register new candidate but i check my database the candidate are not been registered there
Check this one out. It has been modified to fit mine. It should give a solution on what to add
Sent from Mail for Windows 10
From: okikiri Sent: Thursday, February 7, 2019 11:27 AM To: rezwanh001/Online-Voting-System-using-php-and-mysql Cc: Darlington Adusei; Comment Subject: Re: [rezwanh001/Online-Voting-System-using-php-and-mysql] Is theremissing html code on the vote.php and manage-admins.php? (#10)
wanted to register new candidate but i check my database the candidate are not been registered there — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
Thanks, It Worked, But I have an Issue , The Members can vote more than once for a member. what can I do.
<?php
require('connection.php');
session_start();
if(empty($_SESSION['member_id'])){
header("location:access-denied.php");
}
?>
<?php
$positions=mysql_query("SELECT * FROM tbPositions")
or die("There are no records to display ... \n" . mysql_error());
?>
<?php
if (isset($_POST['Submit']))
{
$position = addslashes( $_POST['position'] );
$result = mysql_query("SELECT * FROM tbCandidates WHERE candidate_position='$position'")
or die(" There are no records at the moment ... \n");
}
else
// do something
?>
<!DOCTYPE html>
<html>
<head>
<title>online voting</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="layout/styles/layout.css" rel="stylesheet" type="text/css" media="all">
<!-- <link href="css/user_styles.css" rel="stylesheet" type="text/css" /> -->
<script language="JavaScript" src="js/user.js">
</script>
<script type="text/javascript">
function getVote(int)
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
if(confirm("Your vote is for "+int))
{
xmlhttp.open("GET","save.php?vote="+int,true);
xmlhttp.send();
}
else
{
alert("Choose another candidate ");
}
}
function getPosition(String)
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","vote.php?position="+String,true);
xmlhttp.send();
}
</script>
<script type="text/javascript">
$(document).ready(function(){
var j = jQuery.noConflict();
j(document).ready(function()
{
j(".refresh").everyTime(1000,function(i){
j.ajax({
url: "admin/refresh.php",
cache: false,
success: function(html){
j(".refresh").html(html);
}
})
})
});
j('.refresh').css({color:"green"});
});
</script>
</head>
<body id="top">
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<div class="wrapper row0">
<div id="topbar" class="hoc clear">
<!-- ################################################################################################ -->
<div class="fl_left">
<ul class="faico clear">
<li><a class="faicon-facebook" href="https://www.facebook.com/"><i class="fa fa-facebook"></i></a></li>
<li><a class="faicon-pinterest" href="https://uk.pinterest.com/"><i class="fa fa-pinterest"></i></a></li>
<li><a class="faicon-twitter" href="https://twitter.com/"><i class="fa fa-twitter"></i></a></li>
<li><a class="faicon-dribble" href="https://dribbble.com/"><i class="fa fa-dribbble"></i></a></li>
<li><a class="faicon-linkedin" href="https://www.linkedin.com/"><i class="fa fa-linkedin"></i></a></li>
<li><a class="faicon-google-plus" href="https://plus.google.com/"><i class="fa fa-google-plus"></i></a></li>
<li><a class="faicon-rss" href="https://www.rss.com/"><i class="fa fa-rss"></i></a></li>
</ul>
</div>
<div class="fl_right">
<ul class="nospace inline pushright">
<li><i class="fa fa-phone"></i> +8801773254014</li>
<li><i class="fa fa-envelope-o"></i> r.haque.249.rh@gmail.com </li>
</ul>
</div>
<!-- ################################################################################################ -->
</div>
</div>
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<div class="wrapper row1">
<header id="header" class="hoc clear">
<!-- ################################################################################################ -->
<div id="logo" class="fl_left">
<h1><a href="index.html">ONLINE VOTING</a></h1>
</div>
<!-- ################################################################################################ -->
<nav id="mainav" class="fl_right">
<ul class="clear">
<li class="active"><a href="voter.php">Home</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</nav>
<!-- ################################################################################################ -->
</header>
</div>
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<div class="wrapper bgded overlay" style="background-image:url('images/demo/backgrounds/background1.jpg');">
<section id="testimonials" class="hoc container clear">
<!-- ################################################################################################ -->
<h2 class="font-x3 uppercase btmspace-80 underlined"> Online <a href="#">Voting</a></h2>
<ul class="nospace group">
<div >
<table bgcolor="#00FF00" width="420" align="center">
<form name="fmNames" id="fmNames" method="post" action="vote.php" onSubmit="return positionValidate(this)">
<tr>
<td bgcolor="#5D7B9D" >Choose Position</td>
<td bgcolor="#5D7B9D" style="color:#000000"; ><SELECT NAME="position" id="position" onclick="getPosition(this.value)">
<OPTION VALUE="select">select
<?php
//loop through all table rows
while ($row=mysql_fetch_array($positions)){
echo "<OPTION VALUE=$row[position_name]>$row[position_name]";
}
?>
</SELECT></td>
<td bgcolor="#5D7B9D" ><input style="color:#ff0000"; type="submit" name="Submit" value="See Candidates" /></td>
</tr>
<tr>
</tr>
</form>
</table>
<table width="270" align="center">
<form>
<tr>
<th>Candidates:</th>
</tr>
<?php
if (isset($_POST['Submit']))
{
while ($row=mysql_fetch_array($result)){
echo "<tr>";
echo "<td style='background-color:#bf00ff'>" . $row['candidate_name']."</td>";
echo "<td style='background-color:#bf00ff'><input type='radio' name='vote' value='$row[candidate_name]' onclick='getVote(this.value)' /></td>";
echo "</tr>";
}
mysql_free_result($result);
mysql_close($link);
//}
}
else
// do nothing
?>
<tr>
<h4>NB: Click a circle under a respective candidate to cast your vote. You can't vote more than once in a respective position. This process can not be undone so think wisely before casting your vote.</h4>
</tr>
</form>
</table>
</div>
</ul>
<!-- ################################################################################################ -->
</section>
</div>
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<div class="wrapper row4">
<footer id="footer" class="hoc clear">
<!-- ################################################################################################ -->
<div class="one_third first">
<h6 class="title">Address</h6>
<ul class="nospace linklist contact">
<li><i class="fa fa-map-marker"></i>
<address>
<p>
Name : Md. Rezwanul Haque <br>
University : KUET <br>
Batch : 2k14 <br>
Dept : CSE <br>
</p>
</address>
</li>
</ul>
</div>
<div class="one_third">
<h6 class="title">Phone</h6>
<ul class="nospace linklist contact">
<li><i class="fa fa-phone"></i> +8801773254014<br>
+8801521479574</li>
</ul>
</div>
<div class="one_third">
<h6 class="title">Email</h6>
<ul class="nospace linklist contact">
<li><i class="fa fa-envelope-o"></i> r.haque.249.rh@gmail.com </li>
</ul>
</div>
<!-- ################################################################################################ -->
</footer>
</div>
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<div class="wrapper row5">
<div id="copyright" class="hoc clear">
<!-- ################################################################################################ -->
<p class="fl_left">Copyright © 2017 - All Rights Reserved - <a href="#">Md. Rezwanul Haque</a></p>
<p class="fl_right">Template by <a target="_blank" href="http://www.os-templates.com/" title="Free Website Templates">OS Templates</a></p>
<!-- ################################################################################################ -->
</div>
</div>
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<!-- ################################################################################################ -->
<a id="backtotop" href="#top"><i class="fa fa-chevron-up"></i></a>
<!-- JAVASCRIPTS -->
<script src="layout/scripts/jquery.min.js"></script>
<script src="layout/scripts/jquery.backtotop.js"></script>
<script src="layout/scripts/jquery.mobilemenu.js"></script>
<!-- IE9 Placeholder Support -->
<script src="layout/scripts/jquery.placeholder.min.js"></script>
<!-- / IE9 Placeholder Support -->
</body>
</html>
That is currently the challenge now. Currently am occupied with another project. It’s something I will see to it. But a little from the research I did. You have to store the user votes in each category they vote. So o voting you check to see if they have already voted in that category if yes then show error message, if not then proceed to insert new values.
Sent from Mail for Windows 10
From: ElSierra Sent: Thursday, February 14, 2019 4:23 PM To: rezwanh001/Online-Voting-System-using-php-and-mysql Cc: Darlington Adusei; Comment Subject: Re: [rezwanh001/Online-Voting-System-using-php-and-mysql] Is theremissing html code on the vote.php and manage-admins.php? (#10)
Check this one out. It has been modified to fit mine. It should give a solution on what to add Sent from Mail for Windows 10 From: okikiri Sent: Thursday, February 7, 2019 11:27 AM To: rezwanh001/Online-Voting-System-using-php-and-mysql Cc: Darlington Adusei; Comment Subject: Re: [rezwanh001/Online-Voting-System-using-php-and-mysql] Is theremissing html code on the vote.php and manage-admins.php? (#10) wanted to register new candidate but i check my database the candidate are not been registered there — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread. Thanks, It Worked, But I have an Issue , The Members can vote more than once for a member. what can I do. `<?php require('connection.php'); session_start(); if(empty($_SESSION['member_id'])){ header("location:access-denied.php"); } ?>
•
• Name : Md. Rezwanul Haque
•
• University : KUET
•
• Batch : 2k14
•
• Dept : CSE
•
•
Is there missing html code on the vote.php and manage-admins.php?