Current location: Hot Scripts Forums » Programming Languages » PHP » Help please - Warning: mysql_fetch_assoc():


Help please - Warning: mysql_fetch_assoc():

Reply
  #1 (permalink)  
Old 09-17-09, 07:58 AM
mememia mememia is offline
New Member
 
Join Date: Sep 2009
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
Help please - Warning: mysql_fetch_assoc():

Hi,

I get this error on one of my pages and i cannot figure out how to fix it.

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/dkizis/public_html/browse.php on line 284

the link is : D Kizis Developers

I am trying to learn so i used a working website and copied it to make it onto a new one with a different template. I ceated the database etc....i just cant solve this one.

Thanks in advance.

Mia
Reply With Quote
  #2 (permalink)  
Old 09-17-09, 08:32 AM
hemi hemi is offline
Wannabe Coder
 
Join Date: Aug 2009
Posts: 117
Thanks: 15
Thanked 0 Times in 0 Posts
post that query that is causing the problem
Reply With Quote
  #3 (permalink)  
Old 09-17-09, 10:42 AM
mememia mememia is offline
New Member
 
Join Date: Sep 2009
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
PHP Code:

<?

   $querySearch 
mysql_query("SELECT * FROM info WHERE category LIKE '%".$_POST['category']."%' $CITYVAR $STATEVAR $PRICEVAR $PRICEHIGHVAR $MINBEDVAR $MAXBEDVAR $PRICETYPEVAR  ORDER BY `pk` DESC limit $offset$limit");
      while(
$myrowSearch mysql_fetch_assoc($querySearch))
    {        
    
?>
Thanks

Last edited by wirehopper; 09-17-09 at 11:19 AM.
Reply With Quote
  #4 (permalink)  
Old 09-17-09, 11:21 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
What are the columns in the info table?
Reply With Quote
  #5 (permalink)  
Old 09-18-09, 11:54 AM
Jcbones Jcbones is offline
Aspiring Coder
 
Join Date: Mar 2009
Location: North Carolina, USA
Posts: 516
Thanks: 5
Thanked 47 Times in 44 Posts
What is:

PHP Code:

$CITYVAR $STATEVAR $PRICEVAR $PRICEHIGHVAR $MINBEDVAR $MAXBEDVAR $PRICETYPEVAR 

??
Reply With Quote
Reply

Bookmarks

Tags
error, php


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Warning: mysql_query() [function.mysql-query]: Access denied for user 'mylogi'@'localhost' (using pa tut123408 PHP 6 05-27-08 11:50 PM
Firefox and align problems gigafare CSS 12 01-07-07 11:22 AM
help with error messages.. please APuppyDog PHP 2 10-05-06 11:09 PM
unknown problem - probably $session issue clantron PHP 6 03-19-06 01:36 PM
Warning: mysql_connect() wzzly PHP 7 02-17-06 05:09 AM


All times are GMT -5. The time now is 07:59 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.