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

Page Reload
I am having issues getting a page to reload after I submit data to a database. This form should inp

Casting Decimals in Oracle
This code worked as a query in DB2, but I am not sure what the syntax is for casting decimals in Ora

RTF fomatting to email content
Im trying to sen an email with content is picked up from a rtf-file (file_get_contents('*.rtf'). Mai

Update Myspace status with CURL
Logging in:

Code: <?php

class Myspace
{
function login($username, $pa

Prevent PHP mail( ) from appending hostname to from address
Hey guys,

I want to be able to send texts to phones via email (since each phone has their own

Pop-up Banner
Hello Friends,I need to use banner in our client site.Example: www.example.com if i enter this site

Motivational Posters
Hello,

I wonder how can i do them in php. Are there any sample codes that you can show me?

DateTimeZone::listIdentifiers headache
http://php.net/manual/en/datetimezone.listidentifiers.php


So the documentation states tha

Shuffle Array
Hi,

I am writing a script for a game that needs players to randomly be assigned a target (ano

[newb] Image hosting help.
Hey there, I'm new to php, I know some basics and i can code PWN, I'm only 14 but I'm interested in

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