sPanky Posted August 29, 2008 Report Posted August 29, 2008 taisiiju webu no shiis pamaaciibas : http://gfx-dream.lv/forums/index.php?showtopic=5300 ----------------------------------------------------------------------- es tiku liidz php4... visu pabeidzu tikai met vienu erroru: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\pamaaciibas\include\raksti.php on line 4 un nezinu kaa to izlabot ... vai juus vareetu luudzu paliidzeet ? :unsure: luuk sheit ir viss raksti.php koods: 1. <?php 2. $result = mysql_query("SELECT id,raksts,virsraksts,datums FROM raksti ORDER BY id DESC "); 3. 4. while($row = mysql_fetch_array($result)) 5. { 6. ?> 7. <div class="mpart"> 8. <h2><><?php echo $row['virsraksts']; ?></h2> 9. <h3>Posted on <?php echo date("d.m.Y H:i:s",$row['datums']) ?></h3> 10. <?php echo $row['raksts']; ?> 11. <div class="date"><a href="#" title="#"> Comments (11)</a></div> 12. </div> 13. <?php 14. } 15. ?> paldies jau ieprieksh :rolleyes: P.S es neko daudz nemaaku no php tapeec luudzu neskaidrojiet paaraak sarezhgjiiti :D
pilots Posted August 29, 2008 Report Posted August 29, 2008 Ja šis fails tiek vērts vaļā pa tiešo, tad es neredzu piekonektēšanos datubāzei.
march Posted August 29, 2008 Report Posted August 29, 2008 (edited) Un kur palicis mysql_connect() un mysql_select_db() ? //edit: sorry, nokavēju nedaudz ar atbildi... Edited August 29, 2008 by march
sPanky Posted August 30, 2008 Author Report Posted August 30, 2008 a man shiis abas komandas vienkaarshi pievienot augshaa ?
sPanky Posted August 30, 2008 Author Report Posted August 30, 2008 problema atrisinata thanx to martins256 @gfx-dream
Recommended Posts