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

array ...
hi
Code: function formatCategories($categories, $parentId)
{
// $navCat stores all child

PHP/PKI
I am trying to set up a web application that uses pki. does anyone have a good tutorial to set this

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

matching numbers inside ( )
I know I can match numbers by just [0-9]+, so I thought matching numbers inside ( ) would be somethi

problems with script
I made a small script wich exchanges points in my website:


<?php
session_start

How can use this array as a key?
Say I have this array for example:


print_r($array);

Prints:
Code: [Select]Array

Working with Global Variables
hi, I'm not really sure why the following code is returning a "Call to a member function getBan

Do While statement
hi guys,

This may sound trivial but im new to php and as part of an assignmenti have to const

progress bar...need expert opinion of experienced webmaster
Hey guys, quick question:

I want to display a progress bar when I upload files, but I am not

LSB (PHP 5.3) problem with static value!
hello,

i'm having a problem. static::$text variable gets lost at some point. can someone plea

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