Advertisement
HoneyRemedy

Untitled

Sep 11th, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. <?php
  2.  
  3. $data = $_GET['name'];
  4. $num = $_GET['number'];
  5.  
  6.  
  7.  
  8.  
  9.  
  10. for($count=0;$count<$num;$count=$count+1)
  11.     {
  12.     if($count%2)
  13.     echo "<span style='background-color:yellow;color:red'>".$data."</span> <br>";
  14.     else
  15.     echo $data."<br>";
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement