iall Posted May 23, 2007 Report Share Posted May 23, 2007 (edited) Labvakar , man ir skripts "news"! Viss ir itka normāli ,bet viņš negrib rakstīt iekš datubāzes - Spied šeit! Kas varētu būt par vainu? :( Man liekas ,ka vaina ir 76 ,77 rindiņā! Edited May 23, 2007 by iall Link to comment Share on other sites More sharing options...
andrisp Posted May 23, 2007 Report Share Posted May 23, 2007 Pēc mysql_query iemet echo mysql_error(); Link to comment Share on other sites More sharing options...
Val Posted May 23, 2007 Report Share Posted May 23, 2007 datubāze, tabula vispār eksistē? Link to comment Share on other sites More sharing options...
iall Posted May 23, 2007 Author Report Share Posted May 23, 2007 (edited) Jā ,tabula eksistē! andrisp - nekāda reakcija! Zobs arī sāp ,bļin :D Edited May 23, 2007 by iall Link to comment Share on other sites More sharing options...
Val Posted May 23, 2007 Report Share Posted May 23, 2007 nopostē vēlreiz infu un tad skaties, ko met atpakaļ. Link to comment Share on other sites More sharing options...
iall Posted May 23, 2007 Author Report Share Posted May 23, 2007 (edited) Tur ir virsraksts - ierakstu virsrakstu, Tur ir īsais teksts - ierakstu īso, Tur ir garais teksts - ierakstu arī to! Kad spiežu "Add News" ,tad visi lauki paliek tukši un viss! :| Varbūt ar šo kas nav kārtībā - Spied šeit! Edited May 23, 2007 by iall Link to comment Share on other sites More sharing options...
andrisp Posted May 23, 2007 Report Share Posted May 23, 2007 Tad pamēģini izechot to kveriju un paskaties vai viss kārtībā. Link to comment Share on other sites More sharing options...
iall Posted May 23, 2007 Author Report Share Posted May 23, 2007 Kā tas būtu jādara? (blush) Link to comment Share on other sites More sharing options...
andrisp Posted May 23, 2007 Report Share Posted May 23, 2007 echo "INSERT INTO news (title, dtime, text1, text2) VALUES ('$title',NOW(),'$text1','$text2')"; Un vispār - error reportingu esi ieslēdzis ? (php.net/error_reporting) Link to comment Share on other sites More sharing options...
iall Posted May 23, 2007 Author Report Share Posted May 23, 2007 (edited) Error report esmu ieslēdzis jā ,laikam esmu stulbs kā zābaks ,tagad tas pierādās! ;D Nevarētu būt tā ,ka 76 rindiņā pietrūkst semikols galā? Edited May 23, 2007 by iall Link to comment Share on other sites More sharing options...
Val Posted May 23, 2007 Report Share Posted May 23, 2007 (edited) visa huiņa slēpjās iekš if($submit) {//begin of if($submit). tb pirms tam nepieciešams $submit = $_POST['submit']; Notices pats pēctam izķersi. bet vispār tas kods tāds nekāds... Edited May 23, 2007 by Val Link to comment Share on other sites More sharing options...
iall Posted May 23, 2007 Author Report Share Posted May 23, 2007 Es jau sapriecājos ,rāda ,ka ziņas ir pievienotas ,bet datubāzē nekā nav ,tutū!Damn!:/ Link to comment Share on other sites More sharing options...
Val Posted May 23, 2007 Report Share Posted May 23, 2007 labāk ej gulēt. Rīt ar skaidrāku galvu pats izdomāsi, kur problēma. Link to comment Share on other sites More sharing options...
iall Posted May 23, 2007 Author Report Share Posted May 23, 2007 (edited) Vēl mazliet pamocīšu sevi un tad metīšu mieru!Rīt varbūt tiešām ,ka labāk veicas! :) Ko šis nozīmē? You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''title, dtime, text1, text2')); VALUES ('virsraksts',NO' at line 1 Mana MySql servera versija nav laba?:/ Edited May 23, 2007 by iall Link to comment Share on other sites More sharing options...
john.brown Posted May 23, 2007 Report Share Posted May 23, 2007 Nē, tas nozīmē, ka tavs SQL vaiicājums nav labs! Tur tak augstāk kaut ko teica, lai nočeko to queriju - tipa echo $query, vai kā nu tev tur ir... Link to comment Share on other sites More sharing options...
Recommended Posts