Ver Mensaje Individual
  #5 (permalink)  
Antiguo 31/03/2008, 13:13
Avatar de insyse
insyse
 
Fecha de Ingreso: abril-2005
Ubicación: Colombia
Mensajes: 206
Antigüedad: 19 años
Puntos: 5
Re: SCRIP para generar Pines aleatorios

Solucionado....

Código PHP:
<?php
$i
=1;
while(
$i<=100){
$var1=rand(10009999) ;
$var2=rand(10009999) ;
$var3=rand(1099);
$var =$var1.$var2.$var3;
echo 
"<br>$var";
$sql "INSERT INTO pines VALUES ('$var', '30')";
$res mysql_query($sql$dbd);
$i++;
}
if(
$res){
echo 
"<p>los pines subieron<br></p>";
}else{
echo 
"<p>error al subir los pines</p>".mysql_error(); 
}

?>
Leonardo R.