The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
code problem
HElp
i created the following code but i dosnt get what i want can someone make it for me good thanxss Code:
$time1_today=date("D d-m-y"); $daytoday1=$DB_site->query("SELECT time FROM other"); if ($daytoday1 == $time1_today) { $DB_site->query("UPDATE other SET time='$time1_today'"); $DB_site->query("UPDATE user SET level=level-1"); } else { } |
#2
|
|||
|
|||
Quote:
2. Please surround your code with [php] tags instead of [code] tags to enable color formatting. 3. The else block is redundant and can be deleted. 4. I strongly recommend that you get in the habit of indenting your code. For example: PHP Code:
PHP Code:
|
#3
|
|||
|
|||
ow iam sorry hehe
well the code is working now but the wrong way hehe i wanted to have a code when switching from day he do it but now he stay entering the code till it is the next day only wanted to do the code when the switch is going to the next day PHP Code:
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|