Articulos PHP
- 2.4 Ciclo WHILE.
- 2.7 Enlazar un programas con include.
- 2.9 Fecha y Hora en PHP.
- 2.3 Ciclo FOR avanzado.
- 1.8 Arreglos o array.
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.6 El método preventDefault.
- 2.4 Usando AJAX con el método .post().
- 2.8 Valor de una lista desplegable con attr().
- 2.2 Introduciendo texto usando el método .text().
- 1.4 El evento click
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 Hojas de estilo 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
- 2.6 Combinando resultados con UNION ALL.
- 4 Creando cuentas MySQL.
- 3.9 Privilegios o permisos en MySQL
- 2.3 Seleccionando registros con NOT IN.
- 1 MySQL.
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
1.7 Ordenar los valores de una columna de forma descendente.
En ocasiones quizás necesitemos que los valores de una columna de ordenen de forma descendente, es decir, de mayor a menor, en ese caso debemos añadir a la instrucción
ORDER BY la palabra DESC.
Para entender un poco mejor, supongamos que tenemos una tabla llamada anuncios y tiene una columna llamada idAnuncio que contiene el número de identificación de cada fila de la tabla, ahora si necesitáramos ordenar dichos números de forma descendente la consulta quedarÃa como sigue:
SELECT idAnuncio FROM anuncios ORDER BY idAnuncio DESC
Y si deseáramos ordenar mas columnas tomando como referencia la columna idAnuncio, quedarÃa:
SELECT idAnuncio, edadMinima FROM anuncios ORDER BY idAnuncio DESCÂ
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
Ordenar valores de forma descendente.
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
1.7