wat does pointer, uid mean?
Also you could add the countries bit in. There is a script on atomicoxide.co.uk for this..![]()

wat does pointer, uid mean?
Also you could add the countries bit in. There is a script on atomicoxide.co.uk for this..![]()
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:.:.
double post i know. but:
error:
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.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
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:.:.
It don't work with SSH Simon..
Ahh! That wont work, seems as you are echoing out $query_do which is actually doing the mysql_query, but not the fetch_array.Next DJ funciton made, add this to the functions file if you want to use it now
Thanks for the other idea, I'll add that.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."";
}
}
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."";
}
}
ban users from site?
EDTALKING
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.
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.
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:.:.
Want to hide these adverts? Register an account for free!