Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z skryptem PHP..., Pomożecie ?
maciek111
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 29.06.2004

Ostrzeżenie: (0%)
-----


Witam.
Nie wiedziałem w jakim dziale to umieścić, więc proszę nie krzyczcie na mnie (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
Mam pewiem problem. Posiadam pewien skrypt, ale nie mogę dać sobie z nim rady. W jednym z plików znajduje się konfiguracja servera:
Cytat
  var $Host="";
  var $Database="";
  var $User="";
  var $Password="";
I uzupełniam to mniej więcej tak:
Cytat
  var $Host="localhost";
  var $Database="maciek111_uk_db";
  var $User="maciek111";
  var $Password="";
Mam server na lycosie, a mój login to maciek111, więc w/w info uzupełniłem dobrze (sprawdzałem nawet na stronie lycosa w dziale My Account - baza itp jest OK). Natomiast gdy uruchamiam ten skrypt (z poziomu przeglądarki of course) to wywala mi taki błąd:
Cytat
Database error: Invalid SQL: select value from settings where name='forgot_pass_email'
MySQL Error: 1146 (Table 'maciek111_uk_db.settings' doesn't exist)
Session halted.

W dziale My Account (na lycosie) aktywowałem baze danych oraz php. W czym może być problem? (IMG:http://forum.php.pl/style_emoticons/default/sad.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
dr_bonzo
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 5 724
Pomógł: 259
Dołączył: 13.04.2004
Skąd: N/A

Ostrzeżenie: (0%)
-----


Mowilem zebys przeczytal manuala/INSTALL/README:
Cytat
1) Create a database on your server and run the sdscreen.sql file into it

Baze juz masz, wejdz do phpMyAdmina i uruchom (uploaduj) plik "sdpaid.sql"

Cytat
2) Edit the file vars.inc.php and edit the following lines:
$sitename="YourSiteName.com"; // here goes your site name
$webmasteremail="support@YourSiteName.com"; // here goes the webmaster email
class CDb extends DB_Sql
{
var $classname = "CDb";
var $Host="localhost"; // mysql server
var $Database=""; // database that contains the tables
var $User=""; // database username
var $Password=""; // database password

3) Upload the files to your public html folder
4) Password protect your admin folder with web protect directories

To tez juz ustawiles -- OK

Cytat
5) Make sure that you deleted the sdscreen.sql file from the public web folder

Usun sdpaid.sql

Powinno dzialac.

----------------------
EDIT: sdscreen.sql -> sdpaid.sql

Ten post edytował dr_bonzo 29.06.2004, 17:42:39
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 12.10.2025 - 03:43