Articulos PHP
- 2.8 Usar funciones para código redundante.
- 3.1 Conexión MySQL con enunciado die.
- 2.2 Ciclo FOR.
- 1.2 Enunciados de salida echo.
- 1.4 Trabajar con números en PHP.
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.4 El evento click
- 2.3 Pasando el cursor sobre un elemento.
- 2.7 Listas desplegables con change()
- 1.6 El método preventDefault.
- 2.4 Usando AJAX con el método .post().
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.2 Estructura de los estilos CSS.
- 1.1 Como incluir estilos en una página web.
- 1 Hojas de estilo 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
- 2 Expresiones <,>,<= y >=.
- 1.9 Seleccionar filas con la expresión columna=valor
- 2.3 Seleccionando registros con NOT IN.
- 1.6 Ordernar valores con ORDER BY.
- 2.1 Seleccionando registros con BETWEEN y WHERE
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