fry2010 Posted February 26, 2009 Share Posted February 26, 2009 oops no your not. Have you tried: while($row = $result->fetch_Object()) { echo $result->column1; echo $result->column2; echo $result->column3; echo $result->column4; } Or if your using PDO use fetchObject(); ?? Also your <br> tags should be <br />. Not that this will change the result. Also switch on error reporting it makes finding problems a lot easier. Quote Link to comment https://forums.phpfreaks.com/topic/146969-solved-two-weeks-and-still-no-answer-on-this-one/page/2/#findComment-771617 Share on other sites More sharing options...
medaswho Posted February 26, 2009 Author Share Posted February 26, 2009 yes i did try fetch object...turns out that my code for storing the data in the first place is putting one white space in front of every row. not sure why, but that's an easy fix. good old trim() on the variables being sent to mysql will take care of that. thanks to all that tried to help :-) Quote Link to comment https://forums.phpfreaks.com/topic/146969-solved-two-weeks-and-still-no-answer-on-this-one/page/2/#findComment-771755 Share on other sites More sharing options...
premiso Posted February 26, 2009 Share Posted February 26, 2009 good old trim() on the variables being sent to mysql will take care of that. thanks to all that tried to help :-) My bet is, the post data is causing the issue. Could be you need to trim it, or it is not posting when you think it is etc. Should have been solved a bunch of posts ago. Quote Link to comment https://forums.phpfreaks.com/topic/146969-solved-two-weeks-and-still-no-answer-on-this-one/page/2/#findComment-771785 Share on other sites More sharing options...
medaswho Posted February 26, 2009 Author Share Posted February 26, 2009 sure premiso, i must obviously missed that. Quote Link to comment https://forums.phpfreaks.com/topic/146969-solved-two-weeks-and-still-no-answer-on-this-one/page/2/#findComment-771807 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.