Canjucks Posted December 4, 2008 Posted December 4, 2008 Not sure where to post this but will just add this here. I am not sure how this happened but would love someone to help me understand why this is appeariing in my codes all of a sudden ' an example below: I have done some searching on here and google but doesn't seem to be harsh from what I have found. <?php <table width='75%' class=\"table\" border=\"0\" cellspacing=\"1\"><tr bgcolor=gray><th>Name</th> <th>Level</th> <th>Time</th><th>Reason</th></tr>"; $q=$db->query("SELECT u.*,c.* FROM users u LEFT JOIN gangs c ON u.gang=c.gangID WHERE u.hospital > 0 ORDER BY u.hospital DESC",$c); while($r=$db->fetch_row($q)) { print "\n<tr><td>{$r['gangPREFIX']} <a href='viewuser.php?u={$r['userid']}'>{$r['username']}</a> [{$r['userid']}]</td><td> {$r['level']}</td><td>{$r['hospital']} minutes</td><td>{$r['hospreason']}</td></tr>"; Any ideas of whats gone on? Cheers in advance Quote
Canjucks Posted December 4, 2008 Author Posted December 4, 2008 Re: Help http://fishbowl.pastiche.org/2003/07/01 ... e_of_apos/ From another google search I found this link and explains whats happened. Does anyone have any ideas how to get this fixed up? Quote
Canjucks Posted December 4, 2008 Author Posted December 4, 2008 Re: Help My game is stuffed now and I do not know what to do I keep getting this error with any minor change I make. I stopped editing after one page and tested to see if it happened to the next and just happened to be the header.....my bad....lol But not seeing funny side any more. Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/piratesn/public_html/header.php on line 15 I have been searching as far and wide as I can on this and not a great deal is helping does anyone have any wisdom on this? It is Internet Explorer playing up and being mean. Quote
AlabamaHit Posted December 4, 2008 Posted December 4, 2008 Re: Help if it only changed the ' to ' then use your texted editor...Reaplace all....' to ' I hope this works...sorry to hear that happend.. Quote
Canjucks Posted December 5, 2008 Author Posted December 5, 2008 Re: Help only problem is that it reverts back to include ' I am hoping there is a line that will allow Internet Explorer to start understanding apostrophes and not replace them with &apos. The wierd thing about all this is that its only just happened for whatever reason. I have been making this game for 2 - 3 months now. getting ready to go live with it all and I get this snag of misinterpretation between browsers. Quote
AlabamaHit Posted December 5, 2008 Posted December 5, 2008 Re: Help did you leave <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> in your header? Quote
Canjucks Posted December 5, 2008 Author Posted December 5, 2008 Re: Help alabama yes i do have that in my header. Do I need to delete this? looks like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <html> <head> It should be ok as its Shaved92bravada three column template, which I hadnt had any problems with maybe until now. (got my game up and running again by doing your suggestion alabama cheers for that, had tried that earlier but didnt work must have missed one as i stupidily did it manually....lol but main point is my game is back up and viewable and testing can continue) Quote
AlabamaHit Posted December 5, 2008 Posted December 5, 2008 Re: Help No, leave that in there, lol...That sets standards...(makes game look right in IE and FF)...Long story short, lol... glad to hear you got it working...Sorry I should have said that replace probably would have some exceptions. Quote
Canjucks Posted December 5, 2008 Author Posted December 5, 2008 Re: Help Thanks alabama, until I get this sorted I will just edit my code as you suggest (the long way now) copy paste, replace with, edit code, copy paste, save, view.....lol) This post will probably be handy if someone else comes across this issue down the line. I think I may have updated IE and thats when the it hit the fan with all this and the fact I hadnt touched my code for several days to notice exactly when it all got misinterpreted. Quote
Dazza Posted December 5, 2008 Posted December 5, 2008 Re: Help Buddy, use a script editor because most have a find/replace feature making it alot quicker Quote
radio_active Posted December 5, 2008 Posted December 5, 2008 Re: Help Notepad works, and its free xD Quote
Canjucks Posted December 5, 2008 Author Posted December 5, 2008 Re: Help yeah i was meaning notepad thanks radio but i also dont have this issue using OPERA (the browser) which is even better for me that I dont have to use notepad or anything else. My code edit in cpanel doesnt have find/replace so OPERA is a good solution for me at the moment. I believe that you can change the script from having the &apos to ' and internet explorer wont crack it so much. I just dont know where to add or exactly what the line is. it goes something like this: str_replace ("&apos" "'"); stopped looking into it once i found that OPERA works fine. Quote
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.