Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] - System kategorii - błąd w skrypcie
mariusz g
post
Post #1





Grupa: Zarejestrowani
Postów: 76
Pomógł: 0
Dołączył: 25.03.2006

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


witam,

Na spronie znalazłem skrypt do kategorii:
nie rozumiem tego zapisu:

  1. <?php
  2. $info<'name'>='Kategorie';
  3. ?>


To jest skrypt:

  1. <?php
  2. function show_cat($id){
  3. $link = mysql_connect('localhost','root','');
  4. mysql_select_db('kategorie',$link);
  5. $sql = 'Select * from categories where catid='.$id.';';
  6. $result = mysql_query($sql,$link);
  7. $info = mysql_fetch_array($result);
  8. if(!$info && $id!=0){
  9. echo 'Nie znana kategoria<br />';
  10. return;
  11. }
  12.  
  13. if($id==0){
  14. $info<'name'>='Kategorie';
  15. $info<'filescount'>=0;
  16. }
  17.  
  18. $sql = 'Select * from categories where parent='.$id.';';
  19. $result = mysql_query($sql,$link);
  20. if(mysql_num_rows($result)<1){
  21. list_files($id);
  22. return 0;
  23. }
  24. echo '<table border="0"><tr><th>'.$info<'name'>.'('. $info<'filescount'> .')</th></tr>'."n";
  25. while(($subcats = mysql_fetch_array($result))!=null){
  26. echo '<tr><td>'.$subcats<'name'>.' ('.$subcats<'filescount'>.') - '
  27. .$subcats<'description'>.'</td></tr>'."n";
  28. }
  29. echo '</table>';
  30.  
  31. }
  32. ?>


i taki błąd wywala:

Parse error: syntax error, unexpected T_IS_GREATER_OR_EQUAL in D:\WebServ\httpd-users\kategorie\index.php on line 14
(to jest lini 15 powiżej)

nie spotkałem się z takim zapisem $info<'name'>='Kategorie'; - jak to zrozumieć

pozdrawiam i proszę o wyrozumiałosć
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: 20.09.2025 - 17:09