Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/09/2008, 09:35
charlone
 
Fecha de Ingreso: septiembre-2008
Mensajes: 10
Antigüedad: 18 años
Puntos: 0
Exclamación Necesita Ayuda con Sesiones

Bueno, paso a comentar...
Ya he creado La base de datos:

Código PHP:
-- Base de datos: `final`
CREATE TABLE `agenda` (
`
age_id` int(11) NOT NULL auto_increment,
`
age_apenom` varchar(50) NOT NULL default '',
`
age_direccion` varchar(50) NOT NULL default '',
`
age_telefono` varchar(50) NOT NULL default '',
`
age_email` varchar(50) NOT NULL default '',
`
age_foto` varchar(35) NOT NULL default '',
`
age_tipo_contacto` int(5) NOT NULL default '0',
`
age_observacion` text NOT NULL,
PRIMARY KEY (`age_id`)
) 
ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;

CREATE TABLE `tipo_contacto` (
`
id_tipo` int(11) NOT NULL auto_increment,
`
nom_tipo` varchar(20) NOT NULL default '',
PRIMARY KEY (`id_tipo`)
) 
ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=5 ;

INSERT INTO `tipo_contacto` VALUES (1, 'Amigo');
INSERT INTO `tipo_contacto` VALUES (2, 'Familiar');
INSERT INTO `tipo_contacto` VALUES (3, 'Laboral');
INSERT INTO `tipo_contacto` VALUES (4, 'Otro'); 
me he conectado con ella a travez de Adodb (conexion.php)

Código PHP:
include("adodb/adodb.inc.php");
$conexion=ADONewConnection("mysqli");
$conexion->Connect("127.0.0.1","root","","final"); 
Tengo un index.html (template) y un index.php q incluye el template...

Código PHP:
include("seguridad.php");
include(
"template.php");
set_file("index","index.html");
pparse("index"); 
Ahora es lo siguiente:

Tengo una Seccion en mi pagina q se llama ALTA_AGENDA.PHP lo q quiero hacer es q al hacer click ahi pida loguearce con un mje q diga "UDS DEBE LOGUEARCE PARA INGRESAR AQUI" y junto con eso q muestre login.html q ya lo tengo creado.

Salu2 y gracias de antemano

Última edición por GatorV; 11/09/2008 a las 12:41