sandis_m Posted July 3, 2011 Report Share Posted July 3, 2011 Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\azb\index.php on line 5 <?php $sql = mysql_query("SELECT * FROM `auction` WHERE `cat`='1' ORDER BY `id` DESC"); while($dataa = mysql_fetch_array($sql)){ ?> <!-- some content --> <?php } ?> Esmu neizpratnē un mazliet apstulbis (?) Quote Link to comment Share on other sites More sharing options...
waplet Posted July 3, 2011 Report Share Posted July 3, 2011 mysql_query(...) or die(mysql_error()); Quote Link to comment Share on other sites More sharing options...
daGrevis Posted July 3, 2011 Report Share Posted July 3, 2011 Ja kverijā ir kas nelabs, tad tas atgriež "false". "Fečam" nepatīk "false". Tik vienkārši... Quote Link to comment Share on other sites More sharing options...
sandis_m Posted July 3, 2011 Author Report Share Posted July 3, 2011 Aj! Nepareizais table bija izvēlēts. Nu neko... tā ir, ka par daudz daru nezinko. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.