Jump to content
GIGN Forum

Php


SaS^MAN
 Share

Recommended Posts

  • 2 weeks later...

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 by mex
  • Like 1
  • Downvote 2
Link to comment
Share on other sites

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

  • Downvote 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...