instalar postgresql php

2,703 views

Published on

tuto de instalacio con wamp muy basico

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,703
On SlideShare
0
From Embeds
0
Number of Embeds
10
Actions
Shares
0
Downloads
61
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

instalar postgresql php

  1. 1. Instalar PostgreSql y PHP windows
  2. 2. Instaladores <ul><li>WAMP </li></ul><ul><li>PostreSql 8.4 </li></ul>
  3. 3. wamp
  4. 5. 1 2
  5. 6. 1
  6. 16. For Frameworks PHP
  7. 17. For Postgresql
  8. 18. Verificar que estén activos sino hacer click y restart all services
  9. 20. Postgresql
  10. 25. admin
  11. 32. 1 2
  12. 42. Index.php <ul><li><?php </li></ul><ul><li>$conexion_bd = pg_connect(&quot;host=localhost dbname=prueba user=postgres password=admin&quot;); </li></ul><ul><li>$consulta = 'SELECT * FROM categoria'; </li></ul><ul><li>$resultado = pg_query($consulta); </li></ul><ul><li>while ($linea = pg_fetch_array($resultado, null, PGSQL_ASSOC)) { </li></ul><ul><li>echo $linea['id'].' '.$linea['nombre'].'<br/>';} </li></ul><ul><li>?> </li></ul>

×