NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page PHP and MT_Rand

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 10-19-2006, 05:32 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
snike's Avatar
Join Date: Mar 2006
Location: USA
Posts: 497
snike has a spectacular aura aboutsnike has a spectacular aura about
 


Save a Life

PHP and MT_Rand


I have this:

$damage = mt_rand(1,$damnumber);

and it doesnt work for some reason.

Should it work?
snike is offline  
Old 10-19-2006, 05:38 PM   #2 (permalink)
NamePros Member
Join Date: Sep 2006
Posts: 134
andysyme will become famous soon enoughandysyme will become famous soon enough
 



presumably $damnumber is set somewhere?

Andy
andysyme is offline  
Old 10-19-2006, 05:45 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
snike's Avatar
Join Date: Mar 2006
Location: USA
Posts: 497
snike has a spectacular aura aboutsnike has a spectacular aura about
 


Save a Life
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..
snike is offline  
Old 10-19-2006, 06:26 PM   #4 (permalink)
NamePros Member
Join Date: Sep 2006
Posts: 134
andysyme will become famous soon enoughandysyme will become famous soon enough
 



lol

glad ur ok

Andy
andysyme is offline  
Old 10-19-2006, 11:23 PM THREAD STARTER               #5 (permalink)
NamePros Regular
 
snike's Avatar
Join Date: Mar 2006
Location: USA
Posts: 497
snike has a spectacular aura aboutsnike has a spectacular aura about
 


Save a Life
It was a mysql thing. i had mysql_fetch_row instead of mysql_fetch_array
snike is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:28 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger