Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php] błąd T_string
meteseron2
post
Post #1





Grupa: Zarejestrowani
Postów: 21
Pomógł: 0
Dołączył: 10.01.2016

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


Witam na początku pragnę dodąc ze jestem troche jeszcze zielony w tych sprawach i nie rozumiem za bardzo tego błedu dlatego prosze o pomoc.Błą jest następujący Parse error: syntax error, unexpected T_STRING on line 10
  1. <?php
  2.  
  3. define('imgFolder','galeria');
  4. define('emptylmgName','empty');
  5. define('extension','.jpg');
  6. define('imgCount,5);
  7. $prevlmgPath = $currentlmgPath = $nextlmgPath = imgFolder.'/'.
  8. epmtylmgName.extension;
  9.  
  10. $photolndex = (isset($_GET['photo'])&& $_GET['photo']<=imgCount)?
  11. intval($_GET['photo']):1;
  12. $left = ($photolndex>1)? true:false;
  13. $right = ($photolndex<imgCount)? true:false;
  14.  
  15. $prevlmgPath = imgFolder.'/'.str_pad(($photolndex-1),3,'0',
  16. STR_PAD_LEFT).'.jpg';
  17. $currentlmgPath = imgFolder.'/'.str_pad($photolndex,3,'0',
  18. STR_PAD_LEFT).'.jpg';
  19. $nextlmgPath = imgFolder.'/'.str_pad(($photolndex+1),3,'0',
  20. STR_PAD_LEFT).'.jpg';
  21. ?>
  22. <table id="galleryTable">
  23. <td width="15%">
  24. <tr> 
  25. <?php
  26. if($left)echo '<a href="index.php?a=galeria&photo='.($photolndex-1).
  27. ""><img id="prevlmg"src="".$prevlmgPath.""/></a>';else echo'<img
  28. src="".(imgFolder.'/'.emptylmgName.extension).""/>';?>
  29. </tr>


Ten post edytował meteseron2 10.01.2016, 12:17:32
Go to the top of the page
+Quote Post

Posty w temacie


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: 20.08.2025 - 09:26