Hey, im trying to figure out how to make a page where it displays the profile pic of the current dj and there slot.
But im not sure how to define which is the current slot and stuff, can anybody help.
Thanks.

Hey, im trying to figure out how to make a page where it displays the profile pic of the current dj and there slot.
But im not sure how to define which is the current slot and stuff, can anybody help.
Thanks.
Not sure if it's possible as they encrypted the code.
Where they've encrypted the code, just change eval to echo.
Im assuming you have a database of the details yeh?
Right, well on your radio stats page is probably something along the lines of "DJ Name: $dj_name"
Well find that and use something like this
Then you can just echo out any information such as profile picture <img src='<? echo $dj_details[profile_picture]; ?>'>PHP Code:$dj_details = mysql_fetch_array(mysql_query("SELECT * FROM `TABLENAME` WHERE `DJNAME` = '$dj_name'"));
Obviously you will need to update the query to suit your database.
Lewis![]()
Sangreal / Romanity ~ Habbo UK & USA
[OurHabbo.Net Owner]
Lewis. (Formerly xRoyal15)
Thanks all.
I'm having problems with defining what is the current slot.
Like getting the correct time and day and choosing the current slot.
$slot = date("G");
$day = date("l");
$s = mysql_fetch_array(mysql_query("SELECT * FROM `timetable` WHERE `day` = '$day'"));
Then you got the, say Monday, row... now you need the hour from it.... so you would use $s[$slot]; which is the value for the current hour, on the current day.
Hope that helps![]()
Sangreal / Romanity ~ Habbo UK & USA
[OurHabbo.Net Owner]
Lewis. (Formerly xRoyal15)
Want to hide these adverts? Register an account for free!