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?

148 Like 44 Dislike
Previous php-forum Next php-forum
Other php-forum

Delete records not in top 15
Hi,

I'm creating a hall of fame page in my game and the page will only display the top 15 sco

reading xml faster than DB call?
I am trying to optimize a high traffic website, and I enabled a feature where there are three photos

Web Application Recipe
Hi Guys!

I am working with the Web Application recipes. I am currently working on the sen

How many users online in the last 24-hours using time()?
I'm fairly new to PHP. I have a MySQL table called 'users' and a field called 'loggedin' which is in

I need some help with the IF command...
I have a large number of images in one section of my website with the .jpg format. I'm adding a bun

sql error
I have been looking at this code for 20mins and can't work out what I am doing wrong. There is somet

Undefined offset
The following script checks to see if the user answer matches the correct answer.

Form Fiel

Php - mysql select?
hi, i have this code:

Code: <?php
session_start();
// dBase file
include &quo

Wrong Info sent Using $get in form
Hi i have this code that i tried to make to send some info from one page to aother with lots of ppls

Select question
Hi,

First I would like to say that php is pretty new for me..
so please don't shoot me if

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