Author Topic: SQL - Problem  (Read 3556 times)

0 Members and 1 Guest are viewing this topic.

Offline veitstoermer

  • Pre-Newbie
  • Posts: 1
    • View Profile
    • http://www.stnc.org
SQL - Problem
« on: May 26, 2002, 05:41:55 PM »
Hallo erst mal.

Die Installation der Gallerie lief problemlos und die Tabellen wurden auch in der Datenbank angelegt. Der Admin-Bereich startet tadellos.

Doch sobald ich die Gallerie betrete erscheint oberhalb folgende Fehlermeldung:


DB Error: Bad SQL Query: SELECT DISTINCT i.image_id, i.cat_id, i.user_id, i.image_name, i.image_description, i.image_keywords, i.image_date, i.image_active, i.image_media_file, i.image_thumb_file, i.image_download_url, i.image_allow_comments, i.image_comments, i.image_downloads, i.image_votes, i.image_rating, i.image_hits, u.user_name, c.cat_name FROM 4images_images i, 4images_users u, 4images_categories c WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND u.user_id = i.user_id AND c.cat_id = i.cat_id ORDER BY RAND()
You have an error in your SQL syntax near 'RAND()' at line 4



Kann mir bitte jemand sagen, ws ich jetzt noch tun muss?

Ich wäre Euch sehr verbunden.


Gruss Veit

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
SQL - Problem
« Reply #1 on: May 26, 2002, 06:17:50 PM »
Du hast eine MySQL Version die niederiger ist, als die geforderte. Um das Problem zu lösen siehe: http://www.4homepages.de/forum/viewtopic.php?t=253

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search