Jump to content

[SOLVED] Every 1000 views give 1$


codexx

Recommended Posts

Hey Everyone,

 

Working on a script where everytime a user gets 1000 views they get 1$. Everything works except the if for the amount of views..

 

How can I make it so it will see if the views is a thouand.. ie.. 1000, 2000, 3000 etc. I don't want to manually have to type 1000 - 500,000! lol

 

ie.

 

<? php
if($views = 1000 || $views = 2000 || $views = 3000){
givemoney($user);
}
?>

 

Thanks in Advance!

Link to comment
https://forums.phpfreaks.com/topic/55679-solved-every-1000-views-give-1/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.