[MySQL] SQL Query
#4

(SPANISH)

Solucionado de la siguiente manera.

Code:
new NumeroRandom, strx[200], count;
do
{
	NumeroRandom = RandomEntre(10000,99999);
	format(strx, 200, "SELECT * FROM `PHONE` WHERE `PHONE_NUMBER` = %d", NumeroRandom);
	new Cache:result = mysql_query(SMF_DATABASE, strx, true);
	cache_set_active(result);
	cache_get_row_count(count);
}
while(count > 1);
WHERE

Code:
RandomEntre(min, max)
{     
    // Crйditos a y_less     
    new rand =  random(max-min)+min;    
    return rand;
}
Reply


Messages In This Thread
[MySQL] SQL Query - by Josevasqueez - 04.11.2018, 19:05
Re: [MySQL] SQL Query - by Calisthenics - 04.11.2018, 20:57
Re: [MySQL] SQL Query - by KinderClans - 04.11.2018, 21:02
Re: [MySQL] SQL Query - by Josevasqueez - 04.11.2018, 23:08

Forum Jump:


Users browsing this thread: 2 Guest(s)