Ver Mensaje Individual
  #6 (permalink)  
Antiguo 23/08/2007, 10:34
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Re: Poner esto en una variable.

mmm, tendrias que hacer mejor una funcion, para eso son:
Código PHP:
function algo() {
$x "SELECT * FROM prueba";
$xx mysql_db_query($base,$x) or die (mysql_error());
while(
$xxx mysql_fetch_array($xx)) 
{
echo 
"".$xxx["prueba2"]."";

}


// mas abajo..
algo(); 
Saludos.