Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] T_VARIABLE o co mu chodzi?
-[php]-
post
Post #1





Goście







Witam, chciałem zapytać bo sam już nie wiem co jest grane: zapytanie:
  1. <?php
  2. include("_tabele/billboard.php");
  3. include("_zapytania/mysql_connect.php");
  4. $zapytanie = mysql_query ("SELECT ulica FROM $mysql_tabela WHERE ulica RLIKE '^[a]' AND zapis=='1'") or 
  5. die ("Błąd w zapytaniu");
  6. $num_rows = mysql_num_rows($zapytanie);
  7. echo"(".$num_rows.") billboardów";
  8. ?>


błąd:
  1. Parse error: syntax error, unexpected T_VARIABLE IN .../public_html/_tabele/billboard.php ON line 6


_tabele/billboard.php
  1. <?php
  2. $mysql_host = "xxx.xxx.x.xxx";
  3. $mysql_login = "xxx";
  4. $mysql_haslo = "xxx";
  5. $mysql_baza = "baza"
  6. $mysql_tabela = "billboard";
  7. ?>


o co mu chodzi?
Go to the top of the page
+Quote Post

Posty w temacie
- [php]   [php] T_VARIABLE o co mu chodzi?   29.09.2007, 21:15:59
- - tsharek   w lini piątej dodaj średnik na końcu   29.09.2007, 21:19:41
- - [php]   o rety jaki styd thx   29.09.2007, 21:22:18
- - nevt   a może tak zamiast: Kodecho"(".$n...   29.09.2007, 21:23:15
- - Grabarz   [PHP] pobierz, plaintext <?phpecho '('.$nu...   29.09.2007, 21:59:04


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 Aktualny czas: 22.08.2025 - 02:28