Database Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsDatabasesDatabase Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old March 23rd, 2011, 08:25 AM
poujman poujman is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2011
Posts: 2 poujman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 44 sec
Reputation Power: 0
Warning: mysql_fetch_array()

Hi everyone,
I have come upon this issue where, when you look at it for long time you can no longer see where the issue is coming from. I am have been banging my head to table in regards to:
"Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in settings.php on line 118"
and i have look at my code over and over again and I know the solution is right in front of me but i cant see it.
The line 118 is the second line that contains "$rows = MySQL_fetch_array($result);
". and i have attached the opening and closing.

PHP Code:
if ($featured_1 != "")
    {

      
$query "SELECT * FROM homes WHERE id=$featured_1";
      
$result MySQL_query($query);
       
$rows MySQL_fetch_array($result);
                          
$id $rows['id'];
                 
$photo $rows['photo'];


             
$query "SELECT * FROM home_images where image_id=$photo";
                
$result MySQL_query($query);

                    
$rows MySQL_fetch_array($result);
                       
$image_id $rows['image_id'];
                     
$image $rows['image'];




all your help is highly appreciated it.
Thank you

Reply With Quote
  #2  
Old March 25th, 2011, 10:10 AM
poujman poujman is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2011
Posts: 2 poujman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 44 sec
Reputation Power: 0
anyone??

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesDatabase Development > Warning: mysql_fetch_array()


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap