Uglymonkey Toplist Script - Getting an error with this script, please help.

free web hosting
Open Discussion > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Uglymonkey Toplist Script - Getting an error with this script, please help.

Chatz
I'm getting an error on the index page.Need help to fix it please.

There's the error:
CODE
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/chatz/public_html/top/index.php on line 10
Failed: delete from uglymonkey_toplist where lastin < '2006-07-28 18:23:19' and total='0'

Here's the index page that I'm getting the error on:

CODE
<?php
include("config.php");

if ($purgedays>0){
    $purgeseconds = $purgedays * 86400;
    $olddate = strftime("%Y-%m-%d %H:%M:%S", time() - $purgeseconds);
    
$getid = mysql_query("SELECT * FROM uglymonkey_toplist where lastin < '$olddate' and total='0'");

while($get = mysql_fetch_array($getid)){
$lastin = $get['lastin'];
$total = $get['total'];
$name = $get['name'];
$id = $get['id'];
$sendto = $get['mail'];
$subject = "cult.toddywap.com toplist\n";  
$message = "cult.toddywap.com, \n\nAs you did not send us any hits for the last $purgedays days, \nyour site, '$name', has been removed from the cult.toddywap.com top list.\nYou may register your site details again if you wish.\nYou need to send at least 1 hit every $purgedays days to keep your site active.";
mail($sendto, $subject, $message);
}
    $sql = "delete from uglymonkey_toplist where lastin < '$olddate' and total='0'";
$result = mysql_query($sql) or die("Failed: $sql");
}

////////////////RESET COUNTERS////////////////


header("Content-type: text/vnd.wap.wml; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";
echo '<wml>
<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>';
echo "<card id=\"toplist\" title=\"cult.toddywap.com\"><p align=\"center\">";


$total = mysql_num_rows(mysql_query("select * from uglymonkey_toplist"));

$active = mysql_num_rows(mysql_query("select * from uglymonkey_toplist WHERE incoming>=2"));

$count1 = mysql_num_rows(mysql_query("select * from uglymonkey_toplist WHERE incoming>=2 AND cat = '1'"));

$count2 = mysql_num_rows(mysql_query("select * from uglymonkey_toplist WHERE incoming>=2 AND cat = '2'"));

$count3 = mysql_num_rows(mysql_query("select * from uglymonkey_toplist WHERE incoming>=2 AND cat = '3'"));

$count4 = mysql_num_rows(mysql_query("select * from uglymonkey_toplist WHERE incoming>=2 AND cat = '4'"));

$count5 = mysql_num_rows(mysql_query("select * from uglymonkey_toplist WHERE incoming>=2 AND cat = '5'"));

echo "<small><a href=\"top20.php\">+ Top 20 Sites +</a><br/><a href=\"http://wap.mmplatform.com/?s=6779\">+ Top Downloads +</a></small><br/>";

$sql = mysql_query("SELECT * FROM uglymonkey_toplist WHERE incoming>=2 ORDER BY incoming desc LIMIT 1");
while($row = mysql_fetch_array($sql)){
    $go = $row['name'];
$id = $row['id'];
    echo "<small><b><a href=\"viewsite.php?id=".$id."\"><img src=\"top.gif\" alt=\"\"/>".$row['name']."</a></b></small>";}
echo "</p><p align=\"left\">";


echo "<small><b>Categories:</b><br/><a href=\"viewcat.php?cat=1\"><img src=\"folder.gif\" alt=\"*\"/>Adult ($count1)</a><br/><a href=\"viewcat.php?cat=2\"><img src=\"folder.gif\" alt=\"*\"/>Downloads ($count2)</a><br/><a href=\"viewcat.php?cat=3\"><img src=\"folder.gif\" alt=\"*\"/>Portal ($count3)</a><br /><a href=\"viewcat.php?cat=4\"><img src=\"folder.gif\" alt=\"*\"/>Chat/Forum ($count4)</a><br /><a href=\"viewcat.php?cat=5\"><img src=\"folder.gif\" alt=\"*\"/>Other ($count5)</a><br/><a href=\"allsites.php\"><img src=\"dir.gif\" alt=\"*\"/>All Sites ($active)</a><br/>---<br/>
<a href=\"rules.wml\"><img src=\"wenload.gif\" alt=\"*\"/>Add Your Site</a><br/><a href=\"searchbox.php\"><img src=\"off.gif\" alt=\"*\"/>Search Engine</a><br/>---<br/>
<a href=\"edit.php\">-Login/Edit</a><br /><a href=\"newest.php\">-Newest sites</a><br /><a href=\"worst20.php\">-Worst sites</a><br /><a href=\"popular.php\">-Popular sites</a><br /><a href=\"about.wml\">-Information</a><br/>---<br /></small><small>registered sites: <b>$total</b></small><br/><small>active sites: <b>$active</b><br/>---<br/>sites sending no hits will be deleted after: <b>$purgedays days</b></small><small>
<br/>---<br/><a href=\"http://cult.toddywap.com\">wappyCULT</a>";

echo "<br/>---<br/>© wappyCULT 2006-2007";
echo "
</small></p></card></wml>";
?>


Please help I need to get this up and running as soon as possible.Thanx

 

 

 


Reply

wappy
o look my stolen toplist script lol.. Should i help.. Mmm.
This server has a different mysql version than i was using before thats why it don't work he he.
Ok i really don't know why im helping you clone me but use the sql from the file toplist.zip in my scripts folder on http://cult.trap17.com instead of the original one lol tongue.gif

Reply

toddy
Didnt even bother to change the tiltles =o] You probably havent set a databses up, or your using the ugly_monkey original database setup

Reply

wappy
yes toddy he will be because when dj.dumb uploaded my script to gumslone's site he assumed i used the original sql.. So he posted the ugly monkey sql not my sql ho ho ho ho. :-) also that script is rubbish. I made a few mistakes and am working on a new toplist for my site which will be much better. Enjoy trying to fix my errors and GOOD LUCK ha ha :-)

Reply

Chatz
Fixing your erros shouldn't be a promblem since i'm one of the best coders on wap.I mean ravingwap probly had more erros than this script and i fixed ravingwap script 100% error free didn't I.The only thing i didn't get was this error but now it's clear that the server is different.Anyway thanx wappy.

Reply

wappy
you fixed raving script? Where? Best coder on wap? Sorry but your not? Lol where is this raving fixed and uploaded i want to see? An the errors are not fixable they are huge mistakes, so huge infact that i started again from scratch with a new top list.
Whats your site url i wanna see?
An if you really have fixed the raving script fully you wanna share? Just uploaded 26 new scripts to my folder.
But you can't go round saying you the best coder with people like ahmet, gumslone etc pmpl your funny.
---
o and btw check the raving script with more phones. Mine works fully on my nokia6630 or any s60, but it don't work fully on my nokia6230 or any s40. It has some real strange file format unknown errors.

Reply

thehate
QUOTE(wappy @ Aug 2 2006, 04:53 PM) *

you fixed raving script? Where? Best coder on wap? Sorry but your not? Lol where is this raving fixed and uploaded i want to see? An the errors are not fixable they are huge mistakes, so huge infact that i started again from scratch with a new top list.
Whats your site url i wanna see?
An if you really have fixed the raving script fully you wanna share? Just uploaded 26 new scripts to my folder.
But you can't go round saying you the best coder with people like ahmet, gumslone etc pmpl your funny.
---
o and btw check the raving script with more phones. Mine works fully on my nokia6630 or any s60, but it don't work fully on my nokia6230 or any s40. It has some real strange file format unknown errors.



fool

Reply

juice
Rather use the ravingwap toplist script. It supports unlimited categories, more than one site per registration, easy to administrate - no need to go into the database everytime and it was released so it is not illegal to use it. Search google for it since the site that had it closed down.

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Recent Queries:-
  1. radio toplist script - 34.26 hr back. (1)
  2. ravingwap scripts - 55.88 hr back. (1)
  3. script wap toplist - 164.22 hr back. (1)
  4. ravingwap script - 296.99 hr back. (1)
  5. ravingwap toplist - 505.44 hr back. (1)
  6. toplist script - 509.07 hr back. (1)
  7. ravingwap - 181.29 hr back. (2)
  8. web and wap toplist script - 967.18 hr back. (1)
Similar Topics

Keywords : uglymonkey toplist script error script

  1. Linux/ Apache /mod_rewrite Issue - Error when accessing a file (4)
  2. Many Php Script Sites - (16)
    Hi I find many sites has PHP scripts :: http://www.proxy2.de/scripts.php http://www.free-php.net
    http://knubbe.t35.com/ http://www.ngcoders.com/ http://www.oxyscripts.com/
    http://www.phparena.net/ http://www.1phpstreet.com/ http://px.sklar.com/
    http://www.scoznet.com/ http://php.resourceindex.com/ /blink.gif' border='0'
    style='vertical-align:middle' alt='blink.gif' /> ...
  3. Very Simple Online Now Script - This is a very simple online now script. (4)
    Hi all, Its Aldo. anyways, I wont be using the method of pagination, i will just tell you how to
    make a basic online now script. When someone logs in, now take into consideration that the name of
    the username input is username ( First ,create a table in your database saying online now and add 2
    fields to it. id and username CODE id type=integer(INT) , auto increment, length =255
    and username = VARCHAR length=the limit a username should be in your site now from there we take
    off : CODE <?php //logged.php //authentication script //connection scri...
  4. Guessing Php Script - (2)
    I am looking for: freeware php quess the person in the photo game script...
  5. Php Downloads Script - (4)
    I've been looking all over the net for a PHP script which can provide an interface to browse a
    downloads database. The database could be powered by MySQL. If you know a script like this, please
    post it here. Thanks in advance, Ironchicken....
  6. Php Guest Online Script - (3)
    make an index.php copy and paste this code CODE <?php $db_host = "localhost";
    $db_user = "root"; $db_pass = ""; $db_name = "test";
    $dbc = mysql_connect($db_host, $db_user, $db_pass); $dbs =
    mysql_select_db($db_name); $tm = time(); $timeout = $tm -
    (30*60);
    if($_SERVER["REMOTE_ADDR"]){$ip=$_SERVER["REMOTE_ADDR
    "];} else{$ip=$_SERVER["HTTP_X_FORWARDED_FOR"];}...
  7. Watermark Your Image With Simple Php Script - found it on the net (35)
    This script was found on the net http://tips-scripts.com/?tip=watermark#tip B&T's Tips &
    Scripts site. Just in case the site may not show, I will include the code here: List of things
    needed: 1. your image in any format 2. watermark image--in gif format with transparent background 3.
    script below with name (i.e. watermark.php) CODE <?php // this script creates a watermarked
    image from an image file - can be a .jpg .gif or .png file // where watermark.gif is a mostly
    transparent gif image with the watermark - goes in the same directory as this script // ...
  8. How To Make Php Newsletter Script - (3)
    I have seen a post on here somewhere which shows how to make a simple newsletter php script. I
    cvant find it anywhere and I wanted to ask some questions of the author. Does anyone know the one I
    mean? Cheers ...
  9. How To Make A View New Post Script? - (5)
    Ok so i'm still working on the forum software i posted about a while back, but I have no idea
    how to do this. I want to make a view new post script, as this is one of the main things that my
    forum software dose not have that all other forums have. so does any body have an idea on how i
    would do this? Thanks....
  10. Html Code Tester. Online Script - (15)
    Yes, yes. I have another script that I have written and I am distributing. I am not entirely sure if
    this works. I have not tested it yet, but I will later and post back with a demo and fix it up.
    Current script: CODE <?php //Save this as something like htmltest.php function
    CheckForm() { $html_unsafe=$_POST['code']; //Gives us our user
    input $html_safe=str_replace("<?php"," ",$html_unsafe);
    //Starts security measures $html_safe=str_replace("?>","
    ",$html_sa...
  11. Need Help Installing Dolphin Community Script! - (5)
    I'm not sure if this is the right place to post this but I really need help in installing the
    dolphin community script. I have absolutely no previous experience of scripts or programming. I
    would really appreciate if someone could walk me through it step-by-step, or even do it for me by
    logging into my cpanel. I have tried to install it my self but I'm a little confused. I'm
    sure it won't take very long at all for someone who has done this before....
  12. Mysql Error - (3)
    ok i need some more help from the wonderful coders here at Trap. I'm almost done with my CMS
    script, but i'm having a problem with the installer.php file, when it trys to inseret the user
    data into the database i keep getting the following error: CODE mySQL Error: You have an
    error in your SQL syntax; check the manual that corresponds to your MySQL server version for the
    right syntax to use near ';INSERT INTO `members` (`id`, `name`,
    `username`, `password`, `email`, `title`) ' at lin...
  13. Parse: Error Unexpected T_lnumber - php parse error when running script (4)
    Hi. I've just created a php script. The main object of the script is to delete some old files
    and replace it with a new file with some new content, effectively moving the contents from one file
    to another. These are the first 50 lines of the file: /* Calculate For The "A" Group - The
    Latest Games ID */ $a_B = 002; while(file_exists("a_" . $a_B . ".dat")) {
    $a_B++; } $new_page_contents = " " . $_POST . " " . $_POST . "
    include \"/home/cmatcme/public_html/footer.php\"; ?> "; $a_stream = fopen(&...
  14. Script: Php Jukebox - A one file script! (4)
    This scripts is so simple, you dont need to edit ANY of it! All you have to do is make a folder
    called 'songs' and put some audio files in it. Here is the whole page, I named it index.php
    and put it in a folder called 'music': CODE <!DOCTYPE HTML PUBLIC
    "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd"> <html> <head>
    <title>PHP jukebox</title> </head> <body> <!-- ©2005 Craig
    lloyd. All rights reserved. Visit cragllo.com for more sc...
  15. What Kind Of Script Do You Need ? - post here and get free script (15)
    Hi everybody sorry if i posting here , i know I want design free PHP script and i dont know
    webmasters what kind of scripts want i think its better to aks here becuase trap17 is very nice
    webmasters forum So , Plz post here what kind of script with details you need ! sorry may en
    is not very well for example you need "upload center" : write "upload center" with upload center
    options ( like Ajax , Fast , multi lan and ... ) with this post we can give script details and
    webmasters idea /smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile....
  16. Script Help Required: Undefined Variable - A fault I cannot spot in PHP (3)
    Hi, when running a PHP script I keep getting the error: QUOTE Notice: Undefined variable: bret
    in c:\program files\easyphp1-8\home\poll.php on line 294 Notice: Undefined
    variable: bret in c:\program files\easyphp1-8\home\poll.php on line 294 (And,
    yes, I get it twice). The code related to the variable is as follows: CODE function
    LogString($string,$type)     {         $t_log = "\n";
            $t_log .=
    $this->globaldata->server_vars['REMOTE_ADDR']."...
  17. Creatting A Playlist Through Php - script help needed (5)
    Hi I am trying to make a script so that i can insert songs into a playlist, but i need a script in
    which it opens the playlist file and removes the closing tag at the end, so before i can add more
    entrys. e.g CODE <atx> <entry>Location 5</entry> <entry>Location
    4</entry> <entry>Location 3</entry> <entry>Location
    2</entry> <entry>Location 1</entry> <atx> But to add more entrys
    i would have to get rid of the atx, then use the fputs to place the new entry into the file. ...
  18. Free Auction Script - Any Suggestions? (6)
    Any free auction script suggested? I want it to be as many practical functions as possible, yet
    easy to manage. And more importantly, it is free! Appreciate your kind suggestions!...
  19. How Do I Connect To Live Database With Php Script? - while being hosted with ComputingHost (6)
    I am not new to programming. I want to create a form to add some values into my tables, the code
    are all working. But I am not sure what is the URL to connect to my site's database. All along,
    I have been testing through MAMP, which provides a local copy of mySQL. Can anyone lend me a hand?
    My site's URL is http://limetouch.com/ ...
  20. Php Rediret Script - (12)
    Ok, what I am trying to do is this. Re-direct a domain name called: avalon.asn.au to
    preschool.stmarksavalon.org.au I have created a script that will re-direct within the a folder.
    However, the avalon.asn.au and stmarksavalon.org.au are PARKED Domains. Any ideas on how to create
    this PHP Redirect Script please?...
  21. Download Script For Mp3 Files - (0)
    Hello, I'm looking for a download script for sound files (e.g. mp3, avi, wma, and other ones).
    i have found a few download scripts but they would not work for sound files for some reason. also
    this will not be used for allowing downloading of illegal or riped music, what i will be using this
    script for is i'm making a site for my church and the pastor wants to be able to recored the
    services and then have me upload them to the site so that the church members can download them for
    what ever reason. If some one could tell me how to make one or could show me a plac...
  22. Library Script - Where? (6)
    Hello, everyone. Anyone knows where I can get a library script that acts like CMS script software,
    you can add books or delete them. I want to build virtual online library which can be accessible to
    everyone. Or just give me some advices how to make it build. I'm a novice in programming....
  23. Wappy Buddy V1.10 - Tibia Gold Edition By Wappy & Jon Roig - the official wap download script (3)
    By downloading this script you are agreeing to the license and terms outlined below /biggrin.gif"
    style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> QUOTE /** * *
    @package: wappyBUDDY - Tibia Gold Edition * @version: 1.10 2006/10/01 00:00:01 wappy * @copyright:
    ©2003, 2006 jon roig, wappy * @release notes: this is the first official release of my download
    script despite pirate and incomplete copies floating around that were stolen from one of my previous
    servers. The next release will follow very shortly * @terms: wappyBUDDY is free softw...
  24. Forum Script - (3)
    Hello, i'm wanting to start making my own forum software but i dont know where to start or what
    i need to know in order to do this. I know i will need php and mysql but what else, and could some
    one point me to a good site were i could learn php and mysql. Thanks ...
  25. How Would I Go About Making A Simple "counting" Script? - (3)
    I plan on making a script for basic voting between different options, and I'd like to know what
    PHP coding I would require. Basically, each choice will be as simple as this: CODE <form
    method="post" action="process.php"> Best falsetto?<br><br>
    <input type="radio" name="1"> Person A<br> <input
    type="radio" name="2"> Person B<br> <input type="submit"
    value="Submit"> </form> What PHP would be used to basically add 1 value to a...
  26. Wappychat_oldskool - old version of my wap chat script :-) (15)
    here is a very old version of my wap chat script, its not very advanced but has privates, smileys
    etc. I will post some further versions (with owner, admin, mod status and profiles) when i have time
    to write the readme/install instructions for them. You will find instructions inside the zip. If you
    have any problems post here but i know it don't work on all servers for some reason but it does
    work on the trap server so will be cool ok /tongue.gif" style="vertical-align:middle" emoid=":P"
    border="0" alt="tongue.gif" /> ...
  27. Script Not Working - I don't know why. (6)
    For some reason my random string script is not working. I got a fatal error when I tried it under
    XAMPP. I do not know why. It looks syntatically correct. Could someone help me? Here is the script:
    (Warning its over 100 lines long) //This PHP script will generate a random array and turn it into
    a string consisting of 0-9 and A-Z. // This is the first developmental version. //Create 10 item
    array for string $string = array(0,0,0,0,0,0,0,0,0,0); //Create function to replace 10-36 with
    A-Z function conToStr() { for ($a = 0;$a switch($string ) { ...
  28. Php Objects: Catchable Fatal Error - There is a weird problem with objects in php 5.2.2 (4)
    in php 4.4.7 my code seems to be ok but in later version 5.2.2 i get this error Catchable fatal
    error: Object of class mission_rank could not be converted to string in
    /Applications/xampp/xamppfiles/htdocs/nexus/includes/forms/cn_reload.php on line 41 cn_reload.php
    include('../class/userClass.php'); session_start(); $app_user =&
    $_SESSION ; if ($app_user->character != false) { $race_letter =
    array('H','E','T','M','G'); $cn_id = 0; foreach
    ($app_user->character as...
  29. Will This Code Work - php linking script ?p= (5)
    hi i'm not that great at php so i'm not to sure if this will work or not. but what i want to
    do is be able to use ?p=staff or what ever page name, with out the php extion, and i would like to
    no if this simple script i made would work. the code is: CODE <?php $p =
    $_GET['p']; if ( !empty($p) &&
    file_exists('./' . $p . '.php') && stristr( $p, '.'
    ) == False ) { // pages = directory where you store your pages    $file = './'
    . $p . '...
  30. Transfer Variables To Another Php Script - (8)
    Hello, I've one registration page where the users fills in their information, is it possible to
    trasnfer the things the fill in on the registration page to another script that does someting and
    returnes something to the first page like true/false and then the registration gives an error
    messange if the other php script returned false? Something like the script "activates" another
    script that does something and returnes the result back to the original script. Best Regards ...



Looking for uglymonkey, toplist, script, error, script

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for uglymonkey, toplist, script, error, script

*MORE FROM TRAP17.COM*
advertisement



Uglymonkey Toplist Script - Getting an error with this script, please help.



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE