Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Debugger wywala błąd, którego nie rozumiem.
Turgon
post
Post #1





Grupa: Zarejestrowani
Postów: 800
Pomógł: 0
Dołączył: 26.11.2005
Skąd: Nowy Sącz

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


Cytat
Parse error: parse error, unexpected T_VARIABLE in C:\Documents and Settings\Administrator\Moje dokumenty\Projekty\Ice Island\lib\~phpdesigner_output_tmp.php on line 12

Kod Klasy :
  1. <?php
  2. class actionController
  3. {
  4. var $connect;
  5. var $mysql;
  6.  
  7. function actionController()
  8. {
  9. include ("./lib/fileLoader.class.php");
  10. include ("./config.php");
  11. include ("./lib/MySQLquery.class.php")
  12. $this->mysql = new MySQLquery;
  13. }
  14. function run()
  15. {
  16. $connect = mysql_connect($config['dbuser'],$config['dbpassword']
  17. mysql_select_db($config['dbname']);
  18. }
  19. }
  20. ?>


Co ten błąd oznacza ?
Go to the top of the page
+Quote Post
Levabul
post
Post #2





Grupa: Zarejestrowani
Postów: 197
Pomógł: 0
Dołączył: 11.07.2005

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


  1. <?php
  2. class actionController
  3. {
  4. var $connect;
  5. var $mysql;
  6.  
  7. function actionController()
  8. {
  9. include ("./lib/fileLoader.class.php");
  10. include ("./config.php");
  11. include ("./lib/MySQLquery.class.php");
  12. $this->mysql = new MySQLquery;
  13. }
  14. function run()
  15. {
  16. $connect = mysql_connect($config['dbuser'],$config['dbpassword']);
  17. mysql_select_db($config['dbname']);
  18. }
  19. }
  20. ?>


ps. przecież mysql_connect przyjmuje (chyba) conajmniej 3 argumenty (brak adresu do mysqla)

Ten post edytował Levabul 18.02.2006, 11:48:11
Go to the top of the page
+Quote Post
Turgon
post
Post #3





Grupa: Zarejestrowani
Postów: 800
Pomógł: 0
Dołączył: 26.11.2005
Skąd: Nowy Sącz

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


Chodzi mi o to co jest nie tak... A nie takie posty...
Odkryłem jeden błąd, ale to nie to (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)
  1. <?php
  2. $connect = mysql_connect($config['dbhost'],$config['dbuser'],$config['dbpassword']);
  3. ?>
Go to the top of the page
+Quote Post
Levabul
post
Post #4





Grupa: Zarejestrowani
Postów: 197
Pomógł: 0
Dołączył: 11.07.2005

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


Żle była lina
  1. <?php
  2.  
  3. include ("./lib/MySQLquery.class.php")
  4.  
  5. ?>


musisz dodać na końcu średnik (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif)
Go to the top of the page
+Quote Post
Turgon
post
Post #5





Grupa: Zarejestrowani
Postów: 800
Pomógł: 0
Dołączył: 26.11.2005
Skąd: Nowy Sącz

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


Dzięki (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) Teraz rozumiem (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) ...
Go to the top of the page
+Quote Post

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: 23.08.2025 - 06:56