Posts by RafaelMacedo • 127 points
9 posts
-
0
votes0
answers41
viewsQ: Update Posts links from the database
Hello, good night. I have a problem and I wanted a help. Within each my post I have a link. Example: Post1 I have the link: https://google.com Post2 I have the link: https://face.com Post3 I have…
-
1
votes2
answers474
viewsQ: Two actions on the same button
Guys, I need help with something simple, but I couldn’t find it on the internet, maybe because I don’t know the correct term to search. But I wanted the following: When you click on the code button…
-
2
votes2
answers107
viewsQ: Random within a Random
Guys, I have this code here: <?php // Define um array com alguns sites: $site[] = 'google.com'; $site[] = 'facebook.com'; // Escolhe um valor aleatório (respeitando o total de sites) $destino =…
phpasked RafaelMacedo 127 -
1
votes1
answer39
viewsQ: Different redirects per day of the week
<?php $site[] = 'youtube.com'; $site[] = 'facebook.com'; $destino = rand(0, (count($site) - 1)); header("Location: " . $site[$destino]); ?> Guys, I use this script to do a random redirect. The…
-
0
votes1
answer209
viewsQ: Replace Iframes
Hi, I wanted help to put together a script but I don’t know where to start. I have a movie site, where I put video iframe. I wanted a script that identifies all these iframe and add an image about…
-
0
votes1
answer111
viewsQ: Button does not appear
a { color: #fff; text-decoration: none; background-color: #007bff; padding: 10px; display: block; width: 250px; border-radius: 4px; -webkit-text-decoration-skip: objects; } a:hover{…
-
1
votes1
answer54
viewsQ: How to release function only when left-clicking div
Currently I have this code, it checks if you had the click inside the DIV and if you have it will activate the function "okay". The problem is that this function is activated when the right or left…
-
0
votes1
answer61
viewsQ: Random inside of Random
<?php // Define um array com alguns sites: $site[] = 'site1.com'; $site[] = 'site2.com'; $site[] = 'site3.com'; $site[] = 'site4.com'; // Escolhe um valor aleatório (respeitando o total de sites)…
phpasked RafaelMacedo 127 -
2
votes2
answers297
viewsQ: Determine time in function
<?php $ler = $_COOKIE['viu']; if($ler == "1") :?> <?php include 'libera.php';?> <?php else :?> <?php include 'bloqueia.php';?><?php endif; ?> I want to modify the above…