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

Problem Dereferencing
With these types and tables:

CREATE TYPE MANAGER AS OBJECT (
MGR_ID INTEGER,

Ajax not working on IE 6 for Windows CE
I've created a webpage which uses the classis Ajax in following format:view plaincopy to clipboardpr

Print out contents of to Excel
I have got this script that gathers all the data that I need but I need it to send it to excel inste

Warning message
I've put a website that I was doing live and I'm getting this warning message when I try to add a ne

Connection Timeout
I'm using xmii 12.0

I'm calling a transaction as a web service from a windows application

Is it possible to stop reservation creation in PM Order?
Hi All,

Is it possible to stop reservation creation in PM Order?

Thanks in adv

modifying a property of an object from a different class
I have 2 classes:
- Math
- Distance

in my math class, I have this line:
$distance =

PHP - MySQL Fail
My PHP code will only execute the first part of my code...

Code: <?php

sessio

Sub-domains & calling unique content
Hello,

Is there a way use something similar to the $_GET function for a sub-domain? I to be a

Problem with the Update command used with a sqldataadapter
I'm connected to a database on an SQL Server and I'm using a sqldataadapter, sqlconnection, sqldatas

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