Ver Mensaje Individual
  #1 (permalink)  
Antiguo 07/09/2008, 22:11
infoportal
 
Fecha de Ingreso: abril-2002
Ubicación: las condes
Mensajes: 184
Antigüedad: 22 años, 1 mes
Puntos: 1
Ayuda con Codigo en wordpress

tengo un sistema que muestra la existencia de equipos despues de que estos cancelaran su supcripcion al torneo.

el tema es que no se porgque wordpress no me procesa el php

el codigo es el siguente

<?$hostname_FAROX = “sfsfasdf”;
$database_FAROX = “dfasfasfas″;
$username_FAROX = “jsdfasdf”;
$password_FAROX = “0124jlkdalss″;
$FAROX = mysql_pconnect($hostname_FAROX, $username_FAROX, $password_FAROX) or trigger_error(mysql_error(),E_USER_ERROR);
$FAROX = mysql_pconnect($hostname_FAROX, $username_FAROX, $password_FAROX) or trigger_error(mysql_error(),E_USER_ERROR);
if (!function_exists(”GetSQLValueString”)) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = “”, $theNotDefinedValue = “”)
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

$theValue = function_exists(”mysql_real_escape_string”) ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

switch ($theType) {
case “text”:
$theValue = ($theValue != “”) ? “‘” . $theValue . “‘” : “NULL”;
break;
case “long”:
case “int”:
$theValue = ($theValue != “”) ? intval($theValue) : “NULL”;
break;
case “double”:
$theValue = ($theValue != “”) ? “‘” . doubleval($theValue) . “‘” : “NULL”;
break;
case “date”:
$theValue = ($theValue != “”) ? “‘” . $theValue . “‘” : “NULL”;
break;
case “defined”:
$theValue = ($theValue != “”) ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}

mysql_select_db($database_FAROX, $FAROX);
$query_usuarios = “SELECT tbequipos.id, tbequipos.equipo, tbjugadores.idequipo, tbjugadores.nombre, tbjugadores.apellidos, tbequipos.idpolera, tbpoleras.id, tbpoleras.imagen, tbequipos.activo FROM tbequipos, tbjugadores, tbpoleras WHERE (tbjugadores.tipo= ‘C’ AND tbequipos.id = tbjugadores.idequipo AND tbjugadores.activo = ‘SI’ AND tbpoleras.id = tbequipos.idpolera)”;
$usuarios = mysql_query($query_usuarios, $FAROX) or die(mysql_error());
$row_usuarios = mysql_fetch_assoc($usuarios);
$totalRows_usuarios = mysql_num_rows($usuarios);
?>






if($row_usuarios[’activo’] == “SI”) { echo “PAGADO”;}
?>
…….copafaro.cl

mysql_free_result($usuarios);
?>

si alguien tiene una sugerencia
__________________
Juan Pablo Sánchez