Jump to content
php.lv forumi

mysql warrnings


ysakovs

Recommended Posts

Vai kāds lūdzu varētu man palīdzēt ar šo erroru?

 

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/system32/public_html/includes/admin_test.php on line 1429

 

Šajā rindiņā atrodas:

 

while($row=mysql_fetch_array($fields)){
Link to comment
Share on other sites

visticamāk, ka jau pirms tam bija kļūda, izpildot sql. tāpēc tgd $fields ir false (šī vērtība izraisa pašreizējo kļūdas paziņojumu)

kad kko dari ar db, tad dari apmēram tā

$fields = mysql_query("...") or die(mysql_error());

Edited by 2easy
Link to comment
Share on other sites

visticamāk, ka jau pirms tam bija kļūda, izpildot sql. tāpēc tgd $fields ir false (šī vērtība izraisa pašreizējo kļūdas paziņojumu)

kad kko dari ar db, tad dari apmēram tā

$fields = mysql_query("...") or die(mysql_error());

 

Ko es varu dariit lai to noverstu?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...