yourbittersweetlover-blog
yourbittersweetlover-blog
Nicole Tatiana Gomez Delgado 9A
115 posts
Informaciones tomadas en las clases de informatica y investigaciones de la WEB.
Don't wanna be here? Send us removal request.
yourbittersweetlover-blog · 7 years ago
Text
Septiembre 6, 2018
Revision de blogs
                                  -cierre del tercer periodo-
Tumblr media
1 note · View note
yourbittersweetlover-blog · 7 years ago
Text
Agosto 30, 2018
-semana cultural-
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Agosto 23, 2018
código del cierre de sesión usado para el acumulativo:
<!DOCTYPE html> <html lang="es"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body><?php ?> </body> </html>
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Agosto 16, 2018
Código de inicio de sesión:
login.php
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <link rel="stylesheet" href="style.css"> </head> <body> <div> <h1>INTRODUCE TUS DATOS</h1> </div> <form class="formulario" action="comprueba_login.php" method="post"> <table> <tr> <td class="izq">Login:</td> <td class="der"><input type="text" name="login"></td> </tr> <tr> <td class="izq">Password:</td> <td class="der"><input type="password" name="password"></td> </tr> <tr> <td colspan="2"><input type="submit" name="enviar" value="LOGIN"></td> </tr> </table> </form> </body> </html>
comprueba_login.php
<html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> </head> <body> <?php try {
$base=new PDO("mysql:host=localhost; dbname=Jeckson" , "root" , "root"); // OJO CON ESTA LINEA $base->setAttribute (PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $sql="SELECT * FROM USUARIOS_LOG WHERE USUARIOS= :login AND PASSWORD= :password"; //marcador
$resultado=$base->prepare($sql); $login=htmlentities(addslashes($_POST["login"])); $password=htmlentities(addslashes($_POST["password"]));  //guardo
$resultado->bindValue(":login", $login); $resultado->bindValue(":password", $password);   //Equivalencia entre marcador con los que se guarda
$resultado->execute();
$numero_registro=$resultado->rowCount(); //Creo un IF para evaluar
if ($numero_registro!=0) { //Redirigir a pagina de usuarios registrados
//echo "<h2>Adelante!!</h2>";
//Se crea la sesión session_start();
$_SESSION["usuario"] = $_POST["login"];
header("Location:usuarios_registrados1.php");
} else {     //Redirigir a la página de LOGIN
echo "<script> alert('Datos erróneos, verifique.'); </script>"; header("location:login.php");
}
} catch(Exception $e) {
die("Error: " . $e->getMessage());
}
?> </body> </html>
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Agosto 9, 2018
Taller #2 teniendo encuenta lo visto en el periodo:
Para acceder
$ mysql -u root -p
Base de datos
mysql> create database alumnos; Crear tabla CREATE TABLE alumnos (nombre VARCHAR(30), edad INT);
USE alumnos;
Mostrar tabla DESCRIBE alumnos; Eliminar tabla DROP DATABASE 11a;
Eliminar y Añadir Tabla
ALTER TABLE datospersonales DROP edad; ALTER TABLE datospersonales ADD edad INT; Insertar datos INSERT INTO datospersonales (codigo, nombre, apellido, edad) VALUES (07, 'Nicole', 'Gomez', 16);
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Agosto 2, 2018
Taller;
primera parte
creamos base de datos: datos
crear tabla: 11adebe contener código, nombre, apellido, años y grado
segunda parte SELECT * FROM alumnos; (para visualizar los datos de la tabla en terminal)
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Julio 26, 2018
Eliminar y Añadir Tabla
ALTER TABLE datospersonales DROP edad; ALTER TABLE datospersonales ADD edad INT; Insertar datos INSERT INTO datospersonales (codigo, nombre, apellido, edad) VALUES (07, 'Nicole', 'Gomez', 16);
link donde se encontro la informacion correspondiente http://www.oscarabadfolgueira.com/crear-una-base-datos-mysql-desde-consola/#Crear_una_nueva_base_de_datos
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Julio 19, 2018
Mostrar tabla DESCRIBE alumnos; Eliminar tabla DROP DATABASE 11a;
ejercicio en clase:
crear una base de datos: prueba
tabla: datospersonales
4 campos: codigo (entero) , nombre, apellido, edad (entero)
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Julio 12, 2018
Vuelta a clases (inicio de tercer periodo)
Para acceder$ mysql -u root -pBase de datos
mysql> create database alumnos; Crear tabla
USE alumnos;
CREATE TABLE alumnos (nombre VARCHAR(30), edad INT); USE alumnos;
Tumblr media
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Mayo 31,2018
Desarrollo de ejercicio en clase
haz click aqui para verlo
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Mayo 24, 2018
Tumblr media
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Mayo 17,2018
-Salida a la UNAB-
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Mayo 10, 2018
Desarrollo del ejercicio
haz click aqui para verlo
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Mayo 3, 2018
Insertar Datos En MySQL Mediante PHP
<?php include('conexion.php'); if (isset($_POST['nombre']) and !empty($_POST['nombre']) and isset($_POST['pw']) and !empty($_POST['pw'])) { $con=mysqli_connect($host,$user,$pw)or die("Problemas al conectar"); mysqli_select_db($con, $db)or die("Problemas al conectar la bd"); mysqli_query($con, "INSERT INTO codigof (NOMBRE,PW) VALUES ('$_POST[nombre]','$_POST[pw]')"); echo "datos insertados"; }else {  echo "Problemas al insertar datos"; } ?>
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Abril 26, 2018
Desarrollo del marco teorico de la propuesta del proyecto
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Abril 19, 2018
Continuacion del proyecto de ingles 2 periodo
0 notes
yourbittersweetlover-blog · 7 years ago
Text
Abril 12, 2018
-Entrega de boletines-
0 notes