Author Topic: Bad SQL Query Error  (Read 3295 times)

0 Members and 1 Guest are viewing this topic.

Offline Neo

  • Pre-Newbie
  • Posts: 2
    • View Profile
    • http://www.saiyan-blood.net
Bad SQL Query Error
« on: March 18, 2003, 09:48:36 AM »
I installed 4images for the 10th time today but an error did display again. this tiume, I checked out the forum and saw that the config.new.php errro matched my error so i followed ur instructions but after i re-installed everything and follwoed ur instructions, i get this:

DB Error: Bad SQL Query: SELECT setting_name, setting_value FROM 4images_settings
No Database Selected

I followed what it said and selected whats stated but 2 no use, still doesnt work. Can some1 install 4images for me? I'm going crazy.,
Crysta Clear Have No Fear

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
Bad SQL Query Error
« Reply #1 on: March 18, 2003, 02:02:48 PM »
what is in your config.php? check again the info u put in there.
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 Neo

  • Pre-Newbie
  • Posts: 2
    • View Profile
    • http://www.saiyan-blood.net
Reply
« Reply #2 on: March 18, 2003, 02:37:04 PM »
Yes. Same thing that Jan recommended before in one of the forums.

Code:

<?php
/**************************************************************************
 *                                                                        *
 *    4images - A Web Based Image Gallery Management System               *
 *    ----------------------------------------------------------------    *
 *                                                                        *
 *             File: config.php                                           *
 *        Copyright: (C) 2002 Jan Sorgalla                                *
 *            Email: jan@4homepages.de                                    *
 *              Web: http://www.4homepages.de                             *
 *    Scriptversion: 1.7                                                  *
 *                                                                        *
 *    Never released without support from: Nicky (http://www.nicky.net)   *
 *                                                                        *
 **************************************************************************
 *                                                                        *
 *    Dieses Script ist KEINE Freeware. Bitte lesen Sie die Lizenz-       *
 *    bedingungen (Lizenz.txt) für weitere Informationen.                 *
 *    ---------------------------------------------------------------     *
 *    This script is NOT freeware! Please read the Copyright Notice       *
 *    (Licence.txt) for further information.                              *
 *                                                                        *
 *************************************************************************/

$db_servertype = "mysql";
$db_host = "";
$db_name = "";
$db_user = "";
$db_password = "";

$table_prefix = "4images_";

define('4IMAGES_ACTIVE', 1);

?>
Crysta Clear Have No Fear