RSS Forums RSS
Please support our PHP advertiser: Lunarpages PHP Web Hosting

rand number

Join Date: Jan 2005
Location: Sheffield, UK
Posts: 294
Reputation: zippee is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 6
zippee's Avatar
zippee zippee is offline Offline
Posting Whiz in Training

Re: rand number

  #2  
Aug 17th, 2005
Not sure why you call function. the below script should work.
$R = rand (1,100000000000000);

$sql = "INSERT INTO boleto (numero) VALUES ('$R')";
mysql_query($sql) or DIE("ERRO Mysql: ".mysql_error()); 
Ecommerce-Web-Store.com Building Your e-Business.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 5:09 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC