RealDrift Posted December 21, 2007 Author Share Posted December 21, 2007 ok the SQL error is gone, the right username is printed. - but firstly is still displays the wrong pic, but shows correct one upon manual refresh. - secondly it randomly displayed my inbox in that frame. also i tried just echoing a word instead of any statement and then i saved the file. my webpage displayed the right word. then i changed the word in the echo statement to something else and saved it. The webpage again showed correct word. i get the feeling the AJAX script does auto refresh. just thought this might help you Quote Link to comment Share on other sites More sharing options...
teng84 Posted December 21, 2007 Share Posted December 21, 2007 do you want you page to let say change the images even if you dont touch it once you get a message? Quote Link to comment Share on other sites More sharing options...
RealDrift Posted December 21, 2007 Author Share Posted December 21, 2007 what u mean? Quote Link to comment Share on other sites More sharing options...
teng84 Posted December 21, 2007 Share Posted December 21, 2007 - but firstly is still displays the wrong pic, but shows correct one upon manual refresh. then your ajax is not working.. you get right image because it fetches the right data from your db upon refresh - secondly it randomly displayed my inbox in that frame. use order by .. Quote Link to comment Share on other sites More sharing options...
RealDrift Posted December 21, 2007 Author Share Posted December 21, 2007 - i meant that that frame in which the two images are mustn't display the inbox page. but it somehow does. that frame is only for the two images. - you suggest the ajax script doesn't work, then why does it work when i just echo a word etc? Quote Link to comment Share on other sites More sharing options...
teng84 Posted December 21, 2007 Share Posted December 21, 2007 try to do this. loop it to see if it really work something like $x='1'; $y.=$x; echo $y; to see if the page really refresh sorry but i'm confused ??? Quote Link to comment Share on other sites More sharing options...
RealDrift Posted December 21, 2007 Author Share Posted December 21, 2007 it echos $y lol means it dsnt work? what are you confused about? Quote Link to comment Share on other sites More sharing options...
teng84 Posted December 21, 2007 Share Posted December 21, 2007 i just do see the result so most of the post is a guess.. lol so now you're convince its not working? Quote Link to comment Share on other sites More sharing options...
RealDrift Posted December 21, 2007 Author Share Posted December 21, 2007 i dnt even know if it works, all i want is a simple refresh method (not html as it is annoying and flickers the images) i am tired of this already, Quote Link to comment Share on other sites More sharing options...
RealDrift Posted December 21, 2007 Author Share Posted December 21, 2007 hopefully someone will come to a solution. i am googling aswell but no luck for any answers Quote Link to comment Share on other sites More sharing options...
mr_mind Posted December 30, 2007 Share Posted December 30, 2007 I think you should try going to a JavScript forum or an AJAX forum because all of your PHP is correct, it is your AJAX that is broken Quote Link to comment 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.