Ver Mensaje Individual
  #6 (permalink)  
Antiguo 12/02/2010, 11:42
Avatar de hOpEx
hOpEx
 
Fecha de Ingreso: junio-2006
Mensajes: 34
Antigüedad: 17 años, 10 meses
Puntos: 1
Respuesta: Sistema de puntos por click con PHP y SQL

Creo que ya tengo algo pero estoy estancado aqui tengo el archivo

points.php
Código PHP:
Ver original
  1. <?php include("header.php");?>
  2. <?php
  3. $db = new mssqlcon();
  4. $exe = $db->query("UPDATE TB_USER SET PointsCPS = PointsCPS +1 WHERE STRACCOUNTID = '$_SESSION[nick]'");
  5.     if($exe){
  6.         print '1 Point Added';
  7.     }else{
  8.         print 'Try more later';
  9.     }
  10. ?>
  11. <?php include("footer.php");?>

Y mi banner con el link
Código HTML:
Ver original
  1. a href="points.php" target="_blank"><img src="gtop.jpg" width="88" height="53" border="0" /></a>

¿Qué mas debo hacer?