HabboxWiki needs you!
Are you a Habbo buff? Or maybe a rare trader with a bunch of LTDs? Get involved with HabboxWiki to share your knowledge!
Join our team!
Whether you're raving for rares, excited for events or happy helping, there's something for you! Click here to apply
Need a helping hand?
Check out our guides for all things to help you make friends, make rooms, and make money!


Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2004
    Location
    Over there. ^_^
    Posts
    1,100
    Tokens
    0

    Latest Awards:

    Default Problem :( HELP!

    my news system worked perfectly fine yesterday right but now its stopped working i get this error on show_news.php

    Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/xenigmac/public_html/members/news/show_news.php on line 5
    here is lines 1 - 7 on show_news.php

    PHP Code:
    <?
     
    include("db.php");//the database connection file
    $getnews mysql_query("SELECT * FROM extreme_news ORDER BY id DESC");

    while(
    $r=mysql_fetch_array($getnews)){
    extract($r);
    and here is the mysql query
    Code:
    CREATE TABLE `extreme_news` (
    `id` int(11) NOT NULL auto_increment,
    `title` varchar(255) NOT NULL default '',
    `user` varchar(22) NOT NULL default '',
    `date` varchar(50) NOT NULL default '0000-00-00',
    `message` text NOT NULL,
    PRIMARY KEY (`id`)
    ) TYPE=MyISAM AUTO_INCREMENT=1;
    what is wrong :@
    *Image Removed


    Ahemm.. How exactly was my sig innapropriate?
    Goddamit i hate this forum :@
    I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@

  2. #2
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    while($r = mysql_fetch_array($getnews)){

    could be that... not sure.. but if it worked yesterday it will be a problem with the database..
    Last edited by splintercell!; 14-07-2005 at 04:11 PM.


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

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

    Latest Awards:

    Default

    try rebooting server via your servers control panel

  4. #4
    Join Date
    Aug 2004
    Location
    Over there. ^_^
    Posts
    1,100
    Tokens
    0

    Latest Awards:

    Default

    something strange was happening when i was viewing the page on its not in an include it was fine but viewing it on an include wouldnt work without the full url for some reason :s but it works now, i just want to add a few things to the stats box now, is there a code which can display how many files there are in a certain directory?
    *Image Removed


    Ahemm.. How exactly was my sig innapropriate?
    Goddamit i hate this forum :@
    I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@

  5. #5
    Join Date
    Jul 2004
    Location
    Webby Forums!
    Posts
    1,879
    Tokens
    0

    Latest Awards:

    Default

    Doubt it could be something in php try phpfreaks.com =]


    Chilimagik.net // Reviews, Band Biographies, News, Pics + Loads More!!
    [Thybag.co.uk - Vive la revolutione]

Posting Permissions

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