savanah Posted May 9, 2008 Share Posted May 9, 2008 Hello. I recently installed PHP Auction, using Lunarpages Cpanel. Everything seemed to be running fine until I tried to access the feedback. Then this showed up in the header: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/pagan7/public_html/auction/yourfeedback.php on line 65 Warning: Cannot modify header information - headers already sent by (output started at /home/pagan7/public_html/auction/yourfeedback.php:65) in /home/pagan7/public_html/auction/themes/default/header.php.html on line 1 Any ideas on how to change/fix this? Thank you, Savanah Quote Link to comment https://forums.phpfreaks.com/topic/104903-phpauction-problem/ Share on other sites More sharing options...
robos99 Posted May 9, 2008 Share Posted May 9, 2008 It'll help if you post some code of where the problem is. Quote Link to comment https://forums.phpfreaks.com/topic/104903-phpauction-problem/#findComment-536916 Share on other sites More sharing options...
947740 Posted May 9, 2008 Share Posted May 9, 2008 The obvious problem with "headers already sent" is the fact that you cannot have any output before the header. You cannot echo, you cannot have any html, you cannot have anything that writes information to the page. Quote Link to comment https://forums.phpfreaks.com/topic/104903-phpauction-problem/#findComment-536922 Share on other sites More sharing options...
micmania1 Posted May 9, 2008 Share Posted May 9, 2008 The reason you are getting the second warning is because no text can be sent to the browser before headers are set. The text that has been sent, is that from the first warning message, so you really only have 1 error, and that is apparantly on line 65. Please post the script and we may be able to help. Quote Link to comment https://forums.phpfreaks.com/topic/104903-phpauction-problem/#findComment-536971 Share on other sites More sharing options...
Orionsbelter Posted May 9, 2008 Share Posted May 9, 2008 if your using dreamweaver it sometimes puts text before headers Quote Link to comment https://forums.phpfreaks.com/topic/104903-phpauction-problem/#findComment-537003 Share on other sites More sharing options...
savanah Posted May 14, 2008 Author Share Posted May 14, 2008 Thanks. I figured that out. I found a different program to use that gives me more options, but...I have another problem. http://paganauctionhouse.com/auctions Right now, it shows the categories & search options on the right. The main body is on the left. I want to switch this around, but have no idea how to do it. Any ideas? Thanks, Savanah Quote Link to comment https://forums.phpfreaks.com/topic/104903-phpauction-problem/#findComment-540565 Share on other sites More sharing options...
947740 Posted May 14, 2008 Share Posted May 14, 2008 I looked at the output and it is in tables. Therefore, you just need to switch the order in which the menus are outputted. Quote Link to comment https://forums.phpfreaks.com/topic/104903-phpauction-problem/#findComment-540889 Share on other sites More sharing options...
savanah Posted May 14, 2008 Author Share Posted May 14, 2008 I can find the code for the main body (the left side), but not the code for the categories/search (right side). Any ideas on how to find it? Quote Link to comment https://forums.phpfreaks.com/topic/104903-phpauction-problem/#findComment-541295 Share on other sites More sharing options...
947740 Posted May 15, 2008 Share Posted May 15, 2008 I would look for some include() functions in the code, and then I would switch the include and the main content. That may or may not work, but it is worth a try. Quote Link to comment https://forums.phpfreaks.com/topic/104903-phpauction-problem/#findComment-541843 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.