SaS^MAN Posted July 15, 2011 Report Share Posted July 15, 2011 Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a3191906/public_html/log.php on line 26 kods : $query = mysql_query("SELECT * FROM Log ORDER BY ID DESC"); kur ir probleema? 1 Link to comment Share on other sites More sharing options...
Dj_Stay Posted July 16, 2011 Report Share Posted July 16, 2011 $query = mysql_query("SELECT * FROM log ORDER BY ID DESC"); vai $query = mysql_query("SELECT id FROM Log ORDER BY ID DESC"); Neesmu php pro masters, bez scripta nevaru palīdzēt. 1 Link to comment Share on other sites More sharing options...
evilxdeadly Posted July 16, 2011 Report Share Posted July 16, 2011 paskaties rowus un tablus vai pareizi $pizda = mysql_query("SELECT * FROM log ORDER BY id desc"); while($row = mysql_fetch_array( $pizda )) { echo "{$row['id']}<br />\n"; } 1 Link to comment Share on other sites More sharing options...
mex Posted July 24, 2011 Report Share Posted July 24, 2011 (edited) Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a3191906/public_html/log.php on line 26 kods : $query = mysql_query("SELECT * FROM Log ORDER BY ID DESC"); kur ir probleema? Ja neesi jau atkodis problēmu, tad problēma ir tāpēc, ka nav ķepas vārdiņam Log. $query = mysql_query("SELECT * FROM `Log` ORDER BY ID DESC"); Edited July 24, 2011 by mex 1 2 Link to comment Share on other sites More sharing options...
KpC Posted July 24, 2011 Report Share Posted July 24, 2011 Ko tev saka šis? $query = mysql_query("SELECT * FROM Log ORDER BY id DESC")or die(mysql_error()); Link to comment Share on other sites More sharing options...
Mazinjais Posted July 27, 2011 Report Share Posted July 27, 2011 (edited) Kļūda ir par mysql_fetch_array, kuru tavā kodā neredzu.. Lai nu kā, apsties vai $query nav tukš (isset vai echo). Edited July 27, 2011 by Mazinjais Link to comment Share on other sites More sharing options...
evilxdeadly Posted July 27, 2011 Report Share Posted July 27, 2011 Ja neesi jau atkodis problēmu, tad problēma ir tāpēc, ka nav ķepas vārdiņam Log. $query = mysql_query("SELECT * FROM `Log` ORDER BY ID DESC"); Ko tev saka šis? $query = mysql_query("SELECT * FROM Log ORDER BY id DESC")or die(mysql_error()); Kļūda ir par mysql_fetch_array, kuru tavā kodā neredzu.. Lai nu kā, apsties vai $query nav tukš (isset vai echo). jūs tiešām stulbi? es jau visu pateicu 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now