![]() |
![]() |
![]() ![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 1 Pomógł: 0 Dołączył: 21.04.2017 Ostrzeżenie: (0%) ![]() ![]() |
<?php
// random number 1 - 100 $result_random = rand(1, 100); // if result less than or equal 70, display ad1 (70%) if($result_random <= 70){ echo "ad1"; } // if result less than or equal 90, display ad2 (20%) else if($result_random <= 90){ echo "ad2"; } // if result less than or equal 100, display ad3 (10%) else { echo "ad3"; } ?> |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 19.07.2025 - 15:46 |