NameSilo

PHP and MT_Rand

SpaceshipSpaceship
Watch

snike

Established Member
Impact
3
I have this:

$damage = mt_rand(1,$damnumber);

and it doesnt work for some reason.

Should it work?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
presumably $damnumber is set somewhere?

Andy
 
0
•••
Ya. it is suppose to 100.

Nvm everyone. I got it. It was a mysql error. I alway figure it out AFTER i ask for help..
 
0
•••
lol

glad ur ok :)

Andy
 
0
•••
It was a mysql thing. i had mysql_fetch_row instead of mysql_fetch_array
 
0
•••
Dynadot — .com TransferDynadot — .com Transfer
Appraise.net

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back