![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
20/02/2011, 15:46
|
| | Fecha de Ingreso: agosto-2010
Mensajes: 28
Antigüedad: 14 años, 6 meses Puntos: 0 | |
Como se usa mysql_free_result Como se escribiria correctamente el uso del mysql_free_result:
if(condicion){
$result = mysql_query("SELECT * FROM tabla");
while($row = mysql_fetch_assoc($result)){
echo $row['campo'];
}mysql_free_result($result);
}
ó
if(condicion){
$result = mysql_query("SELECT * FROM tabla");
while($row = mysql_fetch_assoc($result)){
echo $row['campo'];
}
}mysql_free_result($result); |