4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: Legendary on July 09, 2005, 03:47:37 AM

Title: db_mysql and double comment post error!!
Post by: Legendary on July 09, 2005, 03:47:37 AM
Hey, I'm not sure this falls under but I'm guessing most of the trouble shooting are here.  Anyhow, I'm running 1.71 and I'm having problem with the comment system.  I don't really know when this error started since someone just told me about two days ago.

If you go to my gallery: LINK TO GALLERY (http://www.idols-unlimited.com)

and comment on any of the images in the gallery

You'll get this error:

Code: [Select]
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/idolsunl/public_html/includes/db_mysql.php on line 92

Where line 92 is this:
Code: [Select]
  function fetch_array($query_id = -1, $assoc = 0) {
    if ($query_id != -1) {
      $this->query_id = $query_id;
    }
    if ($this->query_id) {
      // BOTTOM IS THE LINE 92
      return ($assoc) ? mysql_fetch_assoc($this->query_id) : mysql_fetch_array($this->query_id);
    }
  }

Also, if you scroll down to the comment, you will see that there are two post instead of one.

Thanks for reading and any help would be appreciated..
Title: Re: db_mysql and double comment post error!!
Post by: V@no on July 09, 2005, 05:21:05 AM
did u change anything in details.php?
if u did, try to restore your backups or replace details.php with a fresh one and see if it still shows the error.
Title: Re: db_mysql and double comment post error!!
Post by: Legendary on July 14, 2005, 09:07:50 PM
I changed the details.php page, but I'm still getting the db_mysql error and the double posting. 

Title: Re: db_mysql and double comment post error!!
Post by: V@no on July 15, 2005, 12:23:39 AM
/me found it hard to belive that with a fresh details.php it does the same thing.