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 561 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]:
|
|
|
|
bartek4175 [MySQL] Problem z ułożeniem zapytania do if 7.05.2014, 13:19:34
Pyton_000 A z czym masz problem? 7.05.2014, 13:27:05 
bartek4175 Cytat(Pyton_000 @ 7.05.2014, 14:27:05... 7.05.2014, 13:29:55
Pyton_000 My też nie. Gdzieś miałem link do innego forum gdz... 7.05.2014, 13:36:18 
bartek4175 Cytat(Pyton_000 @ 7.05.2014, 14:36:18... 7.05.2014, 13:39:29
johny_s [PHP] pobierz, plaintext if(false) {... 7.05.2014, 13:39:35 
bartek4175 Cytat(johny_s @ 7.05.2014, 14:39:35 )... 7.05.2014, 13:48:31
Turson bardziej łopatologicznie się (chyba) nie da
[PHP] ... 7.05.2014, 13:50:19 
bartek4175 Cytat(Turson @ 7.05.2014, 14:50:19 ) ... 7.05.2014, 14:05:50
Pyton_000 Oj *Turson
[PHP] pobierz, plaintext $stmt2 = mysq... 7.05.2014, 15:12:00
nospor @Pyton a co ci nie pasowalo w zapytaniu Tursona? W... 7.05.2014, 15:33:32
Turson Też nie wiem 7.05.2014, 15:34:31
Pyton_000 zerknij na zmienne w zapytaniu 7.05.2014, 15:46:59
Turson $r[id]=>{$r['id']}
no dobra, ... 7.05.2014, 15:48:40
Pyton_000 id nie jest Constans 7.05.2014, 15:49:31
Turson W "" można używać [id] traktowane jako k... 7.05.2014, 15:51:15
nospor Dokladnie.... to są podstawy php panie Pyton 7.05.2014, 15:53:44
Pyton_000 haha Nigdzie nie napisali że tak wolno
Per Pa... 7.05.2014, 15:56:14 ![]() ![]() |
|
Aktualny czas: 24.12.2025 - 08:38 |