Perdón por la poca info que di, agrego más datos.
Es con mayúsculas, el error me lo dá en minúsculas no sé porque.
El Pb_Ejecuto_Query está definido en el comienzo del registro.
Código PHP:
<?
include "global.php";
$Connection=Conectarse();
$IngresoOk = $_SESSION["IngresoOk"];
if (!isset($strMensaje))
$strMensaje = '';
if (isset($cmdRegistro)):
if ($IngresoOk == "S") :
$sSql = "Delete From usuarios Where Usuario = '" . $txtUsuario . "'";
Pb_Ejecuto_Query($Connection, $sSql);
endif;
Registro();
else:
$sMensaje = "";
endif;
Y esa línea completa es así:
Código PHP:
<?
function Registro()
{
global $txtUsuario, $Clave, $Nombre, $Sexo, $EstadoCivil, $FechaNacimiento, $Direccion;
global $Ciudad, $Estado, $Pais, $Telefono, $Fax, $CorreoElectronico, $SitioWeb, $Empresa;
global $RubroComercial, $Cargo, $Profesion, $News, $PerfilPublico, $Intereses;
global $Descripcion, $Iglesia, $strMensaje;
global $Connection;
$sSql = "Select Usuario From usuarios Where Usuario='" . $txtUsuario . "'";
$Result = Pb_Ejecuto_Query($Connection, $sSql);
$MyFecha = Explode('/', $FechaNacimiento);
$FechaNacimiento = $MyFecha[2] . "-" . $MyFecha[1] . "-" . $MyFecha[0];
if ( Pb_Hay_Datos($Result) == 0 ):
No me doy cuenta del error. Antes funcionaba, no le cambié nada.