Ver Mensaje Individual
  #11 (permalink)  
Antiguo 19/04/2010, 12:08
Metatronstyle
 
Fecha de Ingreso: marzo-2010
Mensajes: 12
Antigüedad: 14 años, 1 mes
Puntos: 0
Respuesta: Un error warning que no tiene solucion...

Entonces como seria?

El codigo mas o menos una parte es este:


function sess_write($id, $sess_data)
{
global $mysql;
$mysql->query('SELECT `session_id`
FROM `' . TABLE_SESSIONS . '`
WHERE `session_id` = \'' . $id . '\'');
$table_sessions = $mysql->fetch();
if ($table_sessions['session_id'])
{
$mysql->query('UPDATE `' . TABLE_SESSIONS . '`
SET `session_value` = \'' . $sess_data . '\'
WHERE `session_id` = \'' . $id . '\'
LIMIT 1');
}
else
{
$mysql->query('INSERT INTO `' . TABLE_SESSIONS . '` VALUES (\'' . $id . '\', \'\', \'' . (time() + 3600) . '\')');
}
return true;
}