I cannot seem to get some of the data to the links links table. The links vote data is updates but not the links links. Here is the script..
<?php
// File: $Id: wl-rating.php,v 1.18 2002/03/10 14:44:54 niceguyeddie Exp $ $Name: $
// ----------------------------------------------------------------------
// // ----------------------------------------------------------------------
// // ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// To read the license please visit // ----------------------------------------------------------------------
// Original Author of file: Francisco Burzi
// Purpose of file:
// ----------------------------------------------------------------------
// 11-30-2001:ahumphr - created file as part of modularistation
/**
* @usedby index
*/
function rateinfo($lid)
{
list($dbconn) = pnDBGetConn();
$pntable = pnDBGetTables();
$column = &$pntable['links_links_column'];
$dbconn->Execute("UPDATE $pntable[links_links]
SET $column[hits]=$column[hits]+1
WHERE $column[lid]=".pnVarPrepForStore($lid).""
$result = $dbconn->Execute("SELECT $column FROM $pntable...); } ?> I hope someone can help me thanks...
<?php
// File: $Id: wl-rating.php,v 1.18 2002/03/10 14:44:54 niceguyeddie Exp $ $Name: $
// ----------------------------------------------------------------------
// // ----------------------------------------------------------------------
// // ----------------------------------------------------------------------
// LICENSE
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License (GPL)
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// To read the license please visit // ----------------------------------------------------------------------
// Original Author of file: Francisco Burzi
// Purpose of file:
// ----------------------------------------------------------------------
// 11-30-2001:ahumphr - created file as part of modularistation
/**
* @usedby index
*/
function rateinfo($lid)
{
list($dbconn) = pnDBGetConn();
$pntable = pnDBGetTables();
$column = &$pntable['links_links_column'];
$dbconn->Execute("UPDATE $pntable[links_links]
SET $column[hits]=$column[hits]+1
WHERE $column[lid]=".pnVarPrepForStore($lid).""
$result = $dbconn->Execute("SELECT $column FROM $pntable...); } ?> I hope someone can help me thanks...