Articulos PHP
- 1.3 Almacenar texto en variables
- 3 PHP junto con MySQL.
- 2.7 Enlazar un programas con include.
- 2.1 Enunciado switch.
- 2.2 Ciclo FOR.
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.1 Como utilizar Jquery
- 1.7 El método CSS.
- 2.2 Introduciendo texto usando el método .text().
- 1.4 El evento click
- 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 Hojas de estilo CSS.
- 1.1 Como incluir estilos en una página web.
- 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
- 2.1 Seleccionando registros con BETWEEN y WHERE
- 2 Expresiones <,>,<= y >=.
- 1.1 Consulta SELECT.
- 3.8 Cuentas de usuario MySQL
- 2.2 Registros especÃficos con IN.
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



