king999 Posted February 17, 2007 Report Share Posted February 17, 2007 Taatad shis ir skripts: http://paste.php.lv/5160 Bet uzmet shaadu kljuudu: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\wamp\www\index.php on line 35 Sheit gan taa ir 34 rinda :) Esmu jauns ar sql datubaazeem , bet vajag steidziigi ziveidot zinju ievietoshanas skriptu, taapeec maacos, bet nevaru iebraukt, kas šeit par vainu. Link to comment Share on other sites More sharing options...
bubu Posted February 17, 2007 Report Share Posted February 17, 2007 Vajag pārbaudīt kļūdas. Starp #34 un #35 rindiņu ieliec pārbaudi: if (!$rez) { die(mysql_error()); } Link to comment Share on other sites More sharing options...
Grey_Wolf Posted February 18, 2007 Report Share Posted February 18, 2007 (edited) king999 --> rakstot kodu domaa liidz nevis CTR+C ; CTR+V $rez = mysql_query("SELECT * FROM zinjas"); while($row = mysql_fetch_array($result)) Edited February 18, 2007 by Grey_Wolf Link to comment Share on other sites More sharing options...
king999 Posted February 18, 2007 Author Report Share Posted February 18, 2007 Mjā, kļūd'jos, izmantojot tutoriāli, paldies par palīdzību. Link to comment Share on other sites More sharing options...
Recommended Posts