Jump to content
php.lv forumi

Man gadiijaas probleema


sPanky

Recommended Posts

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

Link to comment
Share on other sites

Un kur palicis mysql_connect() un mysql_select_db() ?

//edit: sorry, nokavēju nedaudz ar atbildi...

Edited by march
Link to comment
Share on other sites

×
×
  • Create New...