Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [MySQL][PHP] Brak polaczenia z baza
--luki--
post 31.05.2013, 15:01:59
Post #1





Goście







Witam
proboje sie polaczyc z baza i mam nastpeujace bledy

Notice: Undefined variable: server in /usr/local/apache2/htdocs/index.php on line 5

Notice: Undefined variable: user in /usr/local/apache2/htdocs/index.php on line 5

Notice: Undefined variable: pass in /usr/local/apache2/htdocs/index.php on line 5

Notice: Undefined variable: database in /usr/local/apache2/htdocs/index.php on line 10
No database selected

  1. <?php
  2.  
  3. include("db-info.php");
  4. $link = mysql_connect($server, $user, $pass);
  5. if(!mysql_select_db($database)) die(mysql_error());
  6. include("session.inc.php");
  7. include("loadsettings.inc.php");
  8. ?>


  1. <?
  2. $server = "192.168.1.1";
  3. $user = "root";
  4. $pass = "haslo";
  5. $database = "test";;
  6. ?>


Go to the top of the page
+Quote Post

Posty w temacie
- -luki-   [MySQL][PHP] Brak polaczenia z baza   31.05.2013, 15:01:59
- - zidek   Powinna pomóc zamiana znacznika [PHP] pobierz, pla...   31.05.2013, 16:32:59


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

 



RSS Wersja Lo-Fi Aktualny czas: 19.07.2025 - 18:45