Created
November 18, 2020 19:09
-
-
Save insidenothing/a953f809fdca91630f8ee125371f8640 to your computer and use it in GitHub Desktop.
sample tech used in broadcast
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta http-equiv="refresh" content="300"> | |
<marquee style='background-color: black; font-size:90px;'> | |
<span style='color:lightblue;'><?PHP echo date('F j, Y, g:i a')." Don't forget to share and like the live video!";?></span> | |
<span style='color:orange;'>+++ COVID NEWS +++<span> | |
<?PHP | |
global $core; | |
$q = "select * from newsbot where title like '%covid%' and post_status like '".date('D, d M Y')."%' "; | |
$r = $core->query($q); | |
while($d = mysqli_fetch_array($r,MYSQLI_ASSOC)){ | |
echo $d['title'].' | '; | |
} | |
?> | |
<span style='color:orange;'>+++ BIDEN NEWS +++<span> | |
<span style='color:white;'> | |
<?PHP | |
$q = "select * from newsbot where title like '%biden%' and post_status like '".date('D, d M Y')."%' "; | |
$r = $core->query($q); | |
while($d = mysqli_fetch_array($r,MYSQLI_ASSOC)){ | |
echo $d['title'].' | '; | |
} | |
?><span> | |
<span style='color:orange;'>+++ TRUMP NEWS +++<span> | |
<span style='color:white;'> | |
<?PHP | |
$q = "select * from newsbot where title like '%trump%' and post_status like '".date('D, d M Y')."%' "; | |
$r = $core->query($q); | |
while($d = mysqli_fetch_array($r,MYSQLI_ASSOC)){ | |
echo $d['title'].' | '; | |
} | |
?><span> | |
</marquee> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm going to borrow this for a test run, Thank man.