![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 284 Pomógł: 1 Dołączył: 15.08.2013 Ostrzeżenie: (0%) ![]() ![]() |
Musze ułożyć taki kod:
jeżeli (w tabeli pliki_w znajduje sie rekord z: $r[id] == idp z pliki_w i login z pliki_w == $data['login'] ) }{ } else { ... tu mój kod.. } Prosze o pomoc! te zmienne np $r[id] co podałem to mam już zdefiniowane baza pliki_w: -------------------------------------------------------------------------- id | login | idp | -------------------------------------------------------------------------- Ten post edytował bartek4175 7.05.2014, 13:23:54 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Moderatorzy Postów: 36 559 Pomógł: 6315 Dołączył: 27.12.2004 ![]() |
Nigdzie nie napisali?? Zajrzyj panie Pyton ( (IMG:style_emoticons/default/wink.gif) ) do manuala do dzialu "Stringi". Jest tam to bardzo ładnie opisane, podane na przykladach, tak wiesz,napisali jak dla poczatkujacych (IMG:style_emoticons/default/smile.gif)
ps: sorki, nie do Strings a do Arrays http://docs.php.net/manual/en/language.types.array.php Cytat // Notice: Use of undefined constant fruit - assumed 'fruit' in...
print $arr[fruit]; // apple // This defines a constant to demonstrate what's going on. The value 'veggie' // is assigned to a constant named fruit. define('fruit', 'veggie'); // Notice the difference now print $arr['fruit']; // apple print $arr[fruit]; // carrot // The following is okay, as it's inside a string. Constants are not looked for // within strings, so no E_NOTICE occurs here print "Hello $arr[fruit]"; // Hello apple // With one exception: braces surrounding arrays within strings allows constants // to be interpreted print "Hello {$arr[fruit]}"; // Hello carrot print "Hello {$arr['fruit']}"; // Hello apple
Powód edycji: [nospor]:
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 4.10.2025 - 12:38 |