Articulos PHP
- 2.8 Usar funciones para c贸digo redundante.
- 1 PHP
- 3 PHP junto con MySQL.
- 1.3 Almacenar texto en variables
- 1.6 Unir comparaciones.
Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 128
Articulos Jquery
- 2.7 Listas desplegables con change()
- 1.2 Usar CDN para utilizar Jquery
- 2.9 Valor de un campo de texto con attr().
- 2.3 Pasando el cursor sobre un elemento.
- 2.2 Introduciendo texto usando el m茅todo .text().
Warning: Use of undefined constant jquery - assumed 'jquery' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 137
Articulos CSS
- 1 Hojas de estilo CSS.
- 1.2 Estructura de los estilos CSS.
- 1.1 Como incluir estilos en una p谩gina web.
Warning: Use of undefined constant css - assumed 'css' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 146
Articulos Mysql
- 1.8 Seleccionando registros con WHERE.
- 1.2 Funci贸n AVG().
- 1.6 Ordernar valores con ORDER BY.
- 3.9 Privilegios o permisos en MySQL
- 3.7 Modificar la estructura de una tabla con ALTER TAB
Warning: Use of undefined constant mysql - assumed 'mysql' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 155
Warning: Use of undefined constant tema - assumed 'tema' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 199
Warning: Use of undefined constant tema - assumed 'tema' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 220
Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 220
3.1 Borrando una fila con DELETE.
Otra de las operaciones b谩sica a realizar en una base de datos es el borrado de una determinada fila, para ello usaremos la instrucci贸n DELETE. Dicha instrucci贸n tiene la siguiente estructura:
DELETE FROM nombreTabla WHERE condici贸n
Como se puede observar primeramente de pone el nombre de la tabla de la cual queremos borrar una determinada fila, posteriormente se incluye una condici贸n, de forma que las filas que la cumplan ser谩n borradas. Para entender un poco mejor, supongamos que tenemos una tabla llamada comentarios y que deseamos borrar las filas correspondientes al usuario llamado Rosario, entonces la consulta quedar铆a como se muestra a continuaci贸n:
DELETE FROM comments WHERE autor =聽 "rosario"
Warning: Use of undefined constant tema - assumed 'tema' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 225
Borrando una fila con DELETE.
Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in /home/vhosts/lawebderay.orgfree.com/articulos.php on line 225
3.1