Help If user voted, block them


Posted on 16th Feb 2014 07:03 pm by admin

On my Prayer request site, i let users Click a button to Pray for somone that has posted a pray, i got that all set up but.

Code: // connect to db...

if ($_GET['id']) {
$id = (int) $_GET['id'];
$sql = "update table set column=column+1 where id=$id";
mysql_query($sql);
}
I want my users to beable to only Pray for a user once each, and then not beable to prayer for that user anymore, for each session

how i do this? easy eh?

No comments posted yet

Your Answer:

Login to answer
148 Like 44 Dislike
Previous forums Next forums
Other forums

What's wrong with my code
sobbing for many days, still don't know why please Help. Why my page isn't posted correctly. In a

Count
Getting the same count everytime

Code:
$visitquery = mysql_query("SELECT COUNT(*) FR

Date Question
I'm using the TIMESTAMP() function within mysql to set the date/time for certain events. However, ho

Sum of Values in an Array
This is probably really simple... but it's been years since I've written anything, so bare with me!<

Session variable help
I'm having a very troubling issue. Maybe I'm just looking over something but I have looked at the co

Applet JTextField Size Problem
Hello,

I recently started making an applet to calculate certain values for airplanes. However

How to refresh a parent page from a modal popup
Hi,I have a modal popup in which I need to upload a file and store in the database should give a mes

Sales orders ans reservations not taken into account on MPS / MRP
Hello,

I am implementing the MPS / MRP and I have the following problem:

I ha

delete comma
HI,

How to delete "," at the end of the string.
Code: $match = 2009/02/03/a2corr

DOMDocument
Hello All,

I need to take an XML document, modify some of the nodes in it and then perform a

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash