Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p id="demo"></p>
- <script>
- function myFunction() {
- var d = new Date();
- var n = d.getDay()
- document.getElementById("demo").innerHTML = n;
- }
- </script>
- <?php
- $asd = "<script>myFunction()</script>";
- if ( $asd < 6) {
- $vege = "22";
- }else{
- $vege = "23";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement