Page 3 of 4 FirstFirst 1234 LastLast
Results 21 to 30 of 37
  1. #21
    Join Date
    May 2006
    Location
    New Zealand
    Posts
    4,452
    Tokens
    0

    Latest Awards:

    Default

    wat does pointer, uid mean?

    Also you could add the countries bit in. There is a script on atomicoxide.co.uk for this..
    New Zealand Web/Tech News

  2. #22
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    uid i believe is unique id. basically there unique user #6 and 7

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  3. #23
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    double post i know. but:
    error:
    Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home10/sub002/sc16051-AGLV/colin-roberts.net/powerpanel/includes/config.php:17) in /mounted-storage/home10/sub002/sc16051-AGLV/colin-roberts.net/powerpanel/in.php on line 178
    i already apllied the fix suggested else were. i can login and get to the page with all the links but when i click on any i get that error.
    Last edited by Colin-Roberts; 19-07-2007 at 01:04 PM.

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  4. #24
    Join Date
    May 2007
    Location
    Nebo, NC, USA
    Posts
    2,517
    Tokens
    0

    Latest Awards:

    Default

    It don't work with SSH Simon..

  5. #25
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by Invent View Post
    Next DJ funciton made, add this to the functions file if you want to use it now

    PHP Code:
    function nextslot(    ) {

        
    $day date("l");
        
        
    $time date("H");
        
        
    $time $time 1;
            
        
    $time "".$time.":00";
        
        
    $query "SELECT * FROM time".$day." WHERE time = '".$time."'";
        
        
    $query_do mysql_query$query ) or die( 'Could not complete query, error: ' .mysql_error( ) );
        
        while( 
    $r mysql_fetch_array$query_do ) ) {
        
            
    $dj $r"slot" ];
        
        }
        
        if( 
    $dj == NULL || $dj == "" ) {
        
            echo( 
    "Sorry! There is no DJ on next :(" );
        
        }
        
        else {
        
            echo 
    "The next DJ is ".$query_do." at ".$time."";
        
        }

    Thanks for the other idea, I'll add that.
    Ahh! That wont work, seems as you are echoing out $query_do which is actually doing the mysql_query, but not the fetch_array.

    This will work:

    PHP Code:
    function nextslot( ) {

        
    $day date("l");
        
        
    $time date("H");
        
        
    $time $time 1;
            
        
    $time "".$time.":00";
        
        
    $query "SELECT * FROM time".$day." WHERE time = '".$time."'";
        
        
    $query_do mysql_query$query ) or die( 'Could not complete query, error: ' .mysql_error( ) );
        
        while( 
    $r mysql_fetch_array$query_do ) ) {
        
            
    $dj $r"slot" ];
        
        }
        
        if( 
    $dj == NULL || $dj == "" ) {
        
            echo( 
    "Sorry! There is no DJ on next :(" );
        
        }
        
        else {
        
            echo 
    "The next DJ is ".$dj." at ".$time."";
        
        }


  6. #26
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    ban users from site?
    EDTALKING


  7. #27
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Thanks Ryan, I re-made the echo bit in the post as it said "The next DJ (Time) is on at (DJ Name)" for some reason lol.

    Also "It don't work with SSH Simon..", I was talking about turn on/off the radio server. That does work with SSH...?
    Last edited by Invent; 19-07-2007 at 04:16 PM.

  8. #28
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Just to point out don't use mysql_fetch_array for returning associative arrays (Basically accessing cells by column name) as it is significently slower than mysql_fetch_assoc. Also note by default mysql_fetch_array is set as deault to return MYSQL_BOTH witch is even slower than returning the associative array by mysql_fetch_array.

  9. #29
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    invent whats the location of the newest public release? (so maybe i can get my copy working)

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  10. #30
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Colin-Roberts View Post
    invent whats the location of the newest public release? (so maybe i can get my copy working)
    You have whitespace in your config.

Page 3 of 4 FirstFirst 1234 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •