homepage Welcome to WebmasterWorld Guest from 54.205.247.203
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Arrgghhh PHP help required!
Supplied argument is not a valid MySQL result resource
knighty




msg:1273708
 10:58 am on Mar 7, 2002 (gmt 0)

I keep getting

Supplied argument is not a valid MySQL result resource

in my PHP pages..the thing is I am following a tutorial line by line. ¦ did a search and found other web pages with this very same thing check out. > [dearones.com...]

Now surely all these people would realise they have a problem? Is it because there is something missing from the PHP installation?

Its really starting to do my head in.

 

GrodanBoll




msg:1273709
 11:22 am on Mar 7, 2002 (gmt 0)

Hi :)

You have a fault in your SQL-query.
Post the query and table structure and we will see if we can help you.

/Grodan

mjs7231




msg:1273710
 7:29 pm on Mar 7, 2002 (gmt 0)

Im sorry for my not knowing...but where can see my Sql-query or my table structure?? thats all new to me.

circuitjump




msg:1273711
 7:43 pm on Mar 7, 2002 (gmt 0)

thats all in your code.

An SQL query looks like so

SELECT * FROM table_name WHERE table_id = 68;

And table structure means what was used to make the table you are calling in your query. For example:

CREATE TABLE pet (
name VARCHAR(20),
owner VARCHAR(20),
species VARCHAR(20),
sex CHAR(1),
birth DATE,
death DATE
);

That was taken from the mysql website manual [mysql.com]

Hope this helps some.

[added]I could be misinterpreting what GrodanBoll meant by saying table structure. [/added]

jatar_k




msg:1273712
 7:55 pm on Mar 7, 2002 (gmt 0)

knighty,

post the actual query that is giving you the problem

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved