Ver Mensaje Individual
  #17 (permalink)  
Antiguo 28/12/2010, 08:32
walterdevel
 
Fecha de Ingreso: diciembre-2010
Mensajes: 788
Antigüedad: 13 años, 4 meses
Puntos: 51
Respuesta: En WAMP 2 no me funciona MySQL !!!!! [ AUXILIO ]

Entonces:

Código PHP:
Ver original
  1. <?php
  2. $link = mysql_connect("localhost", "root", "") or
  3.     die("Could not connect: " . mysql_error());
  4. mysql_select_db("my_db", $link);
  5.  
  6. $result = mysql_query("SELECT id, email, fullname FROM my_table", $link);
  7.  
  8. while ($row = mysql_fetch_assoc($result)) {
  9.     echo $row['id'];
  10.     echo $row['fullname'];
  11.     echo $row['email'];
  12. echo '.';    
  13. }
  14.  
  15. echo '<<<';
  16.  
  17. ?>