School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!
You're Browsing As A Guest! Register Now...
Become an Expert!

Join 357,970 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,549 people online right now.Registration is fast and FREE... Join Now!



mysql_fetch_array()

52 Weeks of Code Challenge: Android

Week #11 of the 52 Weeks of Code Challenge is Android, you should give it a shot. Click Here!

mysql_fetch_array() Rate Topic: -----

#1 wrighty  Icon User is offline

  • New D.I.C Head
  • Pip

Reputation: 0
  • View blog
  • Posts: 38
  • Joined: 09-December 08


Dream Kudos: 0

Posted 02 May 2009 - 03:16 PM

mysql_fetch_array(): supplied argument is not a valid MySQL result resource in


some one please explain
Was This Post Helpful? 0
  • +
  • -


#2 Zerobu  Icon User is offline

  • Black Hatter
  • PipPipPipPipPip

Reputation: 11
  • View blog
  • Posts: 1,822
  • Joined: 14-January 08


Dream Kudos: 225

Re: mysql_fetch_array()

Posted 02 May 2009 - 04:03 PM

It would help if you show some code

This post has been edited by Zerobu: 02 May 2009 - 04:03 PM

Was This Post Helpful? 0
  • +
  • -

#3 JackOfAllTrades  Icon User is offline

  • Mayor of Simpleton
  • Icon

Reputation: 753
  • View blog
  • Posts: 8,086
  • Joined: 23-August 08


Dream Kudos: 50

Expert In: Being annoyed with lazy people.

Re: mysql_fetch_array()

Posted 02 May 2009 - 05:32 PM

Best guess is that your query failed. Run your query like this:
$query = "SELECT * FROM whatever";
$result = mysql_query($query) or die("Query $query failed: " . mysql_error());
while ($row = mysql_fetch_array($result))
{
   // ...
}


And report back to us what is the reported error.
Was This Post Helpful? 0
  • +
  • -



Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month