Rain Posted February 27, 2004 Report Share Posted February 27, 2004 Man radās jautājums par UPTADE lietošanu iekš MySQL! MAn kļūdas paziņojumu neizmet, bet DB netiek apdeitota. Skripts SEIT Būšu pateicīgs par palīdzību Link to comment Share on other sites More sharing options...
Aleksejs Posted February 27, 2004 Report Share Posted February 27, 2004 un ko rāda mysql_error(); ja ielikts uzreiz pēc mysql_query() ? vai kolonna l1 ir vienīgā cipariskā kolonna un pārējās teksta? Link to comment Share on other sites More sharing options...
mors Posted February 27, 2004 Report Share Posted February 27, 2004 nomaini $l1 uz '$l1' un $diena uz '$diena', bet visdrizak ka kluda ir seit: $l2='$l2' ["$" kolonnas nosaukuma] Link to comment Share on other sites More sharing options...
Klez Posted February 28, 2004 Report Share Posted February 28, 2004 WHERE diena=$diena"; nomaini to uz WHERE diena='$diena'"; ja vertiiba nav cipars tad to jaaliek 'ampersandos' Link to comment Share on other sites More sharing options...
Aleksejs Posted February 28, 2004 Report Share Posted February 28, 2004 Klez: ampersands, starp citu, ir "&" zīme :P Link to comment Share on other sites More sharing options...
Venom Posted February 28, 2004 Report Share Posted February 28, 2004 UPDATEs var arī aiziet visai labi, bet neko nenopupdeitot, ja teff nesakrīt atlases kritēriji. Jebšu query nostrādā OK, nomainīti:0. Ja teff tas iraid svarīgi, jāskatās mysql_affected_rows() Link to comment Share on other sites More sharing options...
Klez Posted February 28, 2004 Report Share Posted February 28, 2004 kaa tad vinjus sauc? me tax nezin. update vari apskatiiit shiten tas straadaa Link to comment Share on other sites More sharing options...
Aleksejs Posted February 28, 2004 Report Share Posted February 28, 2004 ' ir apostrofs Link to comment Share on other sites More sharing options...
Klez Posted February 28, 2004 Report Share Posted February 28, 2004 Paldies Aleksej. :) Link to comment Share on other sites More sharing options...
Recommended Posts