Skip to content

Instantly share code, notes, and snippets.

@insidenothing
Created November 18, 2020 19:09
Show Gist options
  • Save insidenothing/a953f809fdca91630f8ee125371f8640 to your computer and use it in GitHub Desktop.
Save insidenothing/a953f809fdca91630f8ee125371f8640 to your computer and use it in GitHub Desktop.
sample tech used in broadcast
<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>
@snowcrashit
Copy link

I'm going to borrow this for a test run, Thank man.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment