Jump to content
MakeWebGames

Help


Canjucks
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...