Author Topic: Probleme nach Installation: DB Error: Bad SQL Query: SELECT  (Read 4257 times)

0 Members and 1 Guest are viewing this topic.

Offline Quick Beginner

  • Pre-Newbie
  • Posts: 1
    • View Profile
Probleme nach Installation: DB Error: Bad SQL Query: SELECT
« on: February 15, 2003, 09:29:09 PM »
Nach der (Erst-)Installation (4images 1.7) erscheint oben auf der Homepage und allen Folgeseiten 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, c.cat_name, u.user_name FROM 4images_images i, 4images_categories c LEFT JOIN 4images_users u ON (u.user_id = i.user_id) WHERE i.image_active = 1 AND i.cat_id NOT IN (0) AND c.cat_id = i.cat_id ORDER BY RAND()
You have an error in your SQL syntax near 'RAND()' at line 5

Alle Seiten  sind vollständig, Layout (mit Aussnahme der Fehlermeldung) ist O.K.
Bilder können eingefügt und angezeigt werden, Kategorien sind bereits angelegt.
Die Administrationsoberfläche zeigt keine Fehlermeldungen.

An welcher Stelle muß ich nach Fehlern suchen, wo ist der Fehler, was könnte es sein ???

Freue mich auf reichlich Rückmeldung !


[ Quick Beginner ]

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Probleme nach Installation: DB Error: Bad SQL Query: SELECT
« Reply #1 on: February 15, 2003, 09:53:53 PM »
make sure your host meet the requrements:
http://4homepages.de/4images/systemvoraussetzungen.php

RAND() only supported by MySQL v3.23 and higher.



-----------------------------------
Altavista traslation:
-----------------------------------

überprüfen Ihr Wirt Treffen die requrements: http://4homepages.de/îmages/systemvoraussetzungen.php RAND() nur gestützt von MySQL v3.23 und stark.
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search