RaitisC Posted October 31, 2007 Report Share Posted October 31, 2007 Tāda problēma: echo $photo mainiigaa saturs ir: photo/maja/a.jpg echo $row[1][photo] masiiva elementa saturs taads pats: photo/maja/a.jpg BET if ($photo == $row[1][photo]) vienmeer ir false!! Kaapeec taa?? meegjinaaju pielikt stripcslashes(); nepaliidz.. Link to comment Share on other sites More sharing options...
bubu Posted October 31, 2007 Report Share Posted October 31, 2007 Varbūt būtu jāraksta: $row[1]["photo"] ? Bet ja tas ar nelīdz, tad tie stringi tomēr nav vienādi kā tev šķiet. Salīdzini tos pa simbolam: $i=0..length-1, if ($a{$i} != $b{$i}) { nav vienāds $i-tais simbols}. Link to comment Share on other sites More sharing options...
RaitisC Posted October 31, 2007 Author Report Share Posted October 31, 2007 paldies par atbildi :) jaa, tiešām, šie divi string atšķīrās. Problēma bija: padodot string mainiigo no vienas lapas uz otru ar file.php?mainiigais mainiigajam beigaas tiek pielikti 14 neredzami simboli to noveerst paliidz funkcija chop(); Link to comment Share on other sites More sharing options...
andrisp Posted October 31, 2007 Report Share Posted October 31, 2007 14 neredzami simboli ? Tipa atstarpes un jaunrindes ? Link to comment Share on other sites More sharing options...
Grey_Wolf Posted October 31, 2007 Report Share Posted October 31, 2007 jaunrindes Labs ;) RaitisC --> trim(Strins).... novac visas atstarpes un jaunrindes/ rindbeigus no abam puseem lieto vienmer pie stringu sanjemsanas POST/GET .... paliidz izvairiities no daudziem parpratumiem... Link to comment Share on other sites More sharing options...
Recommended Posts