Ver Mensaje Individual
  #5 (permalink)  
Antiguo 24/08/2009, 15:58
NaikiOwned
 
Fecha de Ingreso: agosto-2009
Mensajes: 110
Antigüedad: 14 años, 8 meses
Puntos: 1
Respuesta: Ayuda con Formulario Actulizar

BD: la palabra taza se refiere al campo p_clave

CREATE TABLE `contenido` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`titulo` varchar(100) NOT NULL,
`contenido_html` text NOT NULL,
`p_clave` varchar(100) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=8 DEFAULT CHARSET=latin1

conxion:
Código PHP:
<?php
//conexion a la base de datos
$server "localhost";
$user "root";
$clave ""//*******
$nombreBD "test";

$conexion = @mysql_connect($server,$user,$clave) or die("Could not make the connection to the server. <b>mysql_connect</b>"); 
@
mysql_select_db($nombreBD,$conexion) or die("Unable to select BD. <b>mysql_select_db</b>");

?>
Gracias por tu tiempo.