Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Zmienne do widoku - problem
Mody23
post
Post #1





Grupa: Zarejestrowani
Postów: 276
Pomógł: 0
Dołączył: 30.06.2010

Ostrzeżenie: (10%)
X----


Witam!

Mam mały problem. Mianowicie mam pewien skrypcik, któremu towarzyszy ciągle, ten sam błąd:

Cytat
Parse error: syntax error, unexpected T_STRING in /home/michael/public_html/forum/admin/admin_custom_fields.php on line 191


Linia 191 i 192 poniżej:

  1. 'U_MOVE_UP' => append_sid("admin_custom_rank.$phpEx?" . POST_FIELDS_URL . "=" . $form_id ."&move=up&o=" . $orderr),
  2. 'U_MOVE_DOWN' => append_sid("admin_custom_rank.$phpEx?" . POST_FIELDS_URL . "=" . $form_id ."&move=down&o=" . $orderr))


Co jest nie tak? Przeglądam ten kod po raz n-ty i nie mogę już nic wymyślić...
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Mody23
post
Post #2





Grupa: Zarejestrowani
Postów: 276
Pomógł: 0
Dołączył: 30.06.2010

Ostrzeżenie: (10%)
X----


Cały ten kod wygląda tak:

  1. if ( $mode == 'move' ) {
  2. $sql = "SELECT field_count, field_order
  3. FROM " . FIELDS_TABLE . ";
  4. if( !$result = $db->sql_query($sql) )
  5. {
  6. $field_count = $db->sql_numrows($result);
  7. if ( $field_count == 0 )
  8. {
  9. $i = 0;
  10. $movee_up = 'w gore';
  11. $movee_down = 'w dol';
  12. while ( $row = $db->sql_fetchrow($result) )
  13. {
  14. $template->assign_block_vars('move', array(
  15. 'L_MOVE_UP' => ( $i != 0 ) ? $movee_up : '',
  16. 'L_MOVE_DOWN' => ( $i != $field_count - 1 ) ? $movee_down : '',
  17. 'U_MOVE_UP' => append_sid("admin_custom_rank.$phpEx?" . POST_FIELDS_URL . "=" . $form_id ."&move=up&o=" . $orderr),
  18. 'U_MOVE_DOWN' => append_sid("admin_custom_rank.$phpEx?" . POST_FIELDS_URL . "=" . $form_id ."&move=down&o=" . $orderr))
  19. );
  20. $i++;
  21. }
Go to the top of the page
+Quote Post

Posty w temacie


Closed TopicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 15.10.2025 - 06:33