| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Pekka Saarinen | Date: | August 15 2002 9:59pm |
| Subject: | Re: Supplied argument is not a valid MySQL result resource!! | ||
| View as plain text | |||
At 8/16/2002, you wrote: >Hi, >in the piece of code given below >----------- >$qid = mysql_query(" > SELECT * > FROM 1_nodedata > WHERE id = $edit_id > "); > $frm = mysql_fetch_array($qid); >----------- >i get the follownig error: > >Warning: Supplied argument is not a valid MySQL result resource in >/z/mercury/www/niksun/admin/add_doc.php on line 107 >element type: > >What is it happening so!! $qid = mysql_query(" SELECT * FROM 1_nodedata WHERE id = '$edit_id' "); if (!$qid ) { print mysql_error(); exit; } $frm = mysql_fetch_array($qid); or $qid = mysql_query(" SELECT * FROM 1_nodedata WHERE id = '$edit_id' "); if (!$qid ) { print mysql_error(); } if ($qid ) { $frm = mysql_fetch_array($qid); } ------------------------- Pekka Saarinen http://photography-on-the.net -------------------------
| Thread | ||
|---|---|---|
| • Supplied argument is not a valid MySQL result resource!! | Anil Garg | 16 Aug |
| • Re: Supplied argument is not a valid MySQL result resource!! | SteveH | 16 Aug |
| • Re: Supplied argument is not a valid MySQL result resource!! | Anil Garg | 16 Aug |
| • Re: Supplied argument is not a valid MySQL result resource!! | Dan Nelson | 16 Aug |
| • RE: Supplied argument is not a valid MySQL result resource!! | Roger Davis | 16 Aug |
| • Re: Supplied argument is not a valid MySQL result resource!! | Jocelyn Fournier | 16 Aug |
| • Re: Supplied argument is not a valid MySQL result resource!! | Anil Garg | 16 Aug |
| • Re: Supplied argument is not a valid MySQL result resource!! | Jocelyn Fournier | 16 Aug |
| • Re: Supplied argument is not a valid MySQL result resource!! | Anil Garg | 16 Aug |
| • Re: Supplied argument is not a valid MySQL result resource!! | Pekka Saarinen | 16 Aug |
