Jump to content

rab

Members
  • Posts

    155
  • Joined

  • Last visited

    Never

Everything posted by rab

  1. If you have mysql databases just make a tables and update it with what songs are playing. Then use a php file to retrive that data.
  2. rab

    IF help

    [code] $nowtime = date("Hi"); //Getting time $nowday = date("D"); //Getting day $query = mysql_query("SELECT * FROM show WHERE day like '$nowday'") or die(mysql_error());//Getting all data from the table where the show is to day $query_rows = mysql_num_rows($query); //Seeing if there is any if($query_rows > 0)//if more than 0 then there is atleast 1 show today {      while($shows = mysql_fetch_array($query)) // putting into an array       {           $start = $shows['start'];           $end = $shows['end'];       }             if(($nowtime =< $end) && ($nowtime >= $start)) //checking if the time is inbetween show times      {              echo "<font color=#FF0000>Show</font>";      } else echo "<font color=#000000>Show</font>"; }echo "<font color=#000000>Show</font>"; [/code] Something I threw together, I hope thats what you want.
  3. rab

    Porting Code

    [a href=\"http://rafb.net/paste/results/lpxXeM27.html\" target=\"_blank\"]source[/a]
  4. I have some C code i want to port to PHP, the C program is based off of creating a socket send, recieving and analyzing the data recieved. How would I do this is PHP?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.