Articulos PHP
- 2.2 Ciclo FOR.
- 2 Enunciados if.
- 1.3 Almacenar texto en variables
- 2.7 Enlazar un programas con include.
- 1.2 Enunciados de salida echo.
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
- 1.9 El elemento on.
- 3.1 Callback en Jquery
- 3 Concatenar efectos con Jquery.
- 2.9 Valor de un campo de texto con attr().
- 1.6 El método preventDefault.
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.1 Como incluir estilos en una página web.
- 1 Hojas de estilo CSS.
- 1.2 Estructura de los estilos CSS.
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 MySQL.
- 3 Actualizar valores con UPDATE.
- 1.9 Seleccionar filas con la expresión columna=valor
- 2.7 Conjunción interna de tablas.
- 3.6 Inspeccionar una base de datos con SHOW.
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
2.0 Seleccionar filas con las expresiones <,>, <= y >= junto con WHERE.
Para seleccionar registros o filas que tengan determinadas columnas cuyos valores sean <,>,<= o >= a otro valor, debemos usar WHERE junto con las expresiones anteriores. Supongamos que tenemos una tabla llamada usuarios y queremos ver todos los nombres de usuarios, es decir, la columna nick, donde la edad sea menor a 18, la consulta queda como sigue:
SELECT Nick FROM usuarios WHERE edad<18
Y si quisieramos los nombres de usuario de quienes la edad sea menor o igual a 18:
SELECT Nick FROM usuarios WHERE edad<=18
que la edad fuera mayor a 18:
SELECT Nick FROM usuarios WHERE edad>18
que la edad sea mayor igual a 18:
SELECT Nick FROM usuarios WHERE edad>=18
que la edad sea mayor igual a 18 y menor igual a 25:
SELECT Nick FROM usuarios WHERE edad>=18 AND edad<=25
y por ultimo que la edad sea mayor a 18 o menor a 25:
SELECT Nick FROM usuarios WHERE edad>18 OR edad<25
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
Expresiones <,>,<= y >=.
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
2



