Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Warning: mysql_fetch_array()
Old 06-12-2009, 11:19 AM Re: Warning: mysql_fetch_array()
Super Talker

Posts: 102
Trades: 0
Quote:
Originally Posted by lothop View Post
PHP Code:
while ($thread mysql_fetch_array($threads)){
    if (
$postsQ != ""){
        
$postsQ .= " OR ";
        
$poststhreadid .= 'thread = \''.$thread['id'].'\' ';
    }else{
    
$postsQ .= ''//removes OR from SQL
    
}
      
}
  
$posts mysql_query("SELECT * FROM posts WHERE '".$poststhreadid."' '".$postsQ."' ORDER BY createdYear DESC, createdMonth DESC, createdDate DESC, createdHour DESC, createdMinute DESC, createdSecond DESC"); 
So both variables don't echo anything.. '".$poststhreadid."' '".$postsQ."'

Last edited by Aaron™; 06-12-2009 at 11:23 AM..
Aaron™ is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-13-2009, 06:47 PM Re: Warning: mysql_fetch_array()
lothop's Avatar
Ultra Talker

Posts: 303
Trades: 0
Maybe try trippys way. Remove the OR's
__________________
Websites Created;
warscope.com
ratepayers.org.nz
lothop is offline
Reply With Quote
View Public Profile
 
Old 06-14-2009, 12:43 AM Re: Warning: mysql_fetch_array()
Super Talker

Posts: 102
Trades: 0
Doesn't change the Warning, but does load a bit faster.
Aaron™ is offline
Reply With Quote
View Public Profile
 
Old 06-14-2009, 04:47 AM Re: Warning: mysql_fetch_array()
Extreme Talker

Posts: 181
Name: David Jackson
Trades: 0
appart from the warning does it work?
__________________

Please login or register to view this content. Registration is FREE
davidj is offline
Reply With Quote
View Public Profile
 
Old 06-14-2009, 10:32 AM Re: Warning: mysql_fetch_array()
Super Talker

Posts: 102
Trades: 0
Mhm, I am just trying to find a solution. If you look at the link you can tell it works.
Aaron™ is offline
Reply With Quote
View Public Profile
 
Old 06-14-2009, 04:28 PM Re: Warning: mysql_fetch_array()
Extreme Talker

Posts: 181
Name: David Jackson
Trades: 0
if its working then your error handling could be too sensitive

turn your error handling down in your PHP.ini file
__________________

Please login or register to view this content. Registration is FREE
davidj is offline
Reply With Quote
View Public Profile
 
Old 06-14-2009, 07:50 PM Re: Warning: mysql_fetch_array()
Super Talker

Posts: 102
Trades: 0
I am just going to shut off the Errors. Thanks for all the help guys, you can lock/delete this topic.
Aaron™ is offline
Reply With Quote
View Public Profile
 
Old 06-14-2009, 08:09 PM Re: Warning: mysql_fetch_array()
Extreme Talker

Posts: 181
Name: David Jackson
Trades: 0
dont stop the errors

just add

& ~NOTICES

to the currently set error level in your php.ini file

you want to see some of them for syntax errors
__________________

Please login or register to view this content. Registration is FREE

Last edited by davidj; 06-14-2009 at 08:10 PM..
davidj is offline
Reply With Quote
View Public Profile
 
Old 06-15-2009, 12:37 AM Re: Warning: mysql_fetch_array()
Super Talker

Posts: 102
Trades: 0
I actually did do that before you told me lol.
Aaron™ is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Warning: mysql_fetch_array()

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.68081 seconds with 11 queries