Jump to content
MakeWebGames

Recommended Posts

Posted (edited)

Parse error: syntax error, unexpected T_STRING in /home/husain/public_html/explore.php on line 79

my explore.php

<?php


include "globals.php";
?>
  <html>
  <head>
  <script type="text/javascript" src="tabs.min.js"></script>
  <style type="text/css">
     #explore {
     color:#6688DD;
     float:left;
     font-family:Cambria,Times New Roman,serif;
     font-size:1.3em;
     font-stretch:normal;
     font-style:italic;
     font-weight:normal;
     line-height:normal;
     width:100px;
     }
     #explore li a {
     background:#222222 none repeat scroll 0 0; /* Change this value to change the backgroud of the tabs */
     display:block;
     font-size:0.8em; /* Change this value to change the font size in the tabs */
     font-style:normal;
     font-weight:bold;
     margin:1px;
     padding:2px 6px 4px;
     text-align:left;
     text-decoration:none;
     width:90px; /* Change this value to change the width of the tabs */
     }
     #explore li a:hover {
     background:#0A0A0A none repeat scroll 0 0; /* Change this value to change the color of when the tab is hovered over */
     width:90px /* This value should be the same as the width of the tabs above */
     }
     #explore li a.selected {
     background:#FFFFFF none repeat scroll 0 0; /* Change this value to change the color of the tab when it is active */
     color:#000000;
     cursor:default;
     width:90px; /* This should also be the same as the two above widths */
     }
     .container {
     background:#181818 none repeat scroll 0 0; /* Change this value to change the background color of the links container */
     border:1px solid #222222;
     margin:20px auto;
     padding-top:2px;
     width:400px; /* Change this value to change the width of links container */
     }
     .container p {
     padding:2px 12px 10px;
     text-align:left;
     } 
  </style>
  </head>
  <body>

<?php
$tresder=(int) rand(100,999);

if($ir['jail'] or $ir['hospital'])
{
  die("This page cannot be accessed while in jail or hospital.");
}

$q = $db->query("SELECT u.*,c.* FROM users u LEFT JOIN cities c ON u.location=c.cityid WHERE (u.userid=$userid)");
$r = $db->fetch_row($q);

print <<<EOF2
  <b>You begin exploring the area you're in, you see a bit that interests you.</b>

  <ul id="explore" class="idTabs"> [*]<a href="http://#markplace" target="_blank">Market Place</a>[*]<a href="http://#smm" target="_blank">Serious Money Makers</a>[*]<a href="http://#darkside" target="_blank">Dark Side</a>[*]<a href="http://#statdept" target="_blank">Stats Dept.</a>[*]<a href="http://#mystery" target="_blank">Mysterious</a>[/list]
  <div class="container">
     <ul id="markplace">[*]<a href="http://shops.php" target="_blank">Shops</a>[*]<a href="http://itemmarket.php" target="_blank">Item Market</a>[*]<a href="http://cmarket.php" target="_blank">Crystal Market</a>[/list]
     <ul id="smm">[*]<a href="http://monorail.php" target="_blank">Travel Agency</a>[*]<a href="http://estate.php" target="_blank">Estate Agent</a>[*]<a href="http://bank.php" target="_blank">City Bank</a>
EOF2;

if($ir['location'] == 5)
  print "[*]<a href="http://cyberbank.php" target="_blank">Cyber Bank</a>";

print <<<EOF3[/list]
     <ul id="darkside">[*]<a href="http://gangcentral.php" target="_blank">Gangs</a>[*]<a href="http://gangwars.php" target="_blank">Gang Wars</a>[*]<a href="http://fedjail.php" target="_blank">Federal Jail</a>[*]<a href="http://slotsmachine.php?tresde=$tresder" target="_blank">Slots Machine</a>[*]<a href="http://roulette.php?tresde=$tresder" target="_blank">Roulette</a>[*]<a href="http://lucky.php" target="_blank">Lucky Boxes</a>[/list]
     <ul id="statdept">[*]<a href="http://userlist.php" target="_blank">User List</a>[*]<a href="http://stafflist.php" target="_blank">{$set['game_name']} Staff</a>[*]<a href="http://halloffame.php" target="_blank">Hall of Fame</a>[*]<a href="http://stats.php" target="_blank">Game Stats</a>[*]<a href="http://usersonline.php" target="_blank">Users Online</a>[/list]
     <ul id="mystery">[*]<a href="http://crystaltemple.php" target="_blank">Crystal Temple</a>[/list]   </div>






  This is your referal link: http://{$domain}/register.php?REF=$userid

  Every signup from this link earns you two valuable crystals!

  </body>
  </html>
EOF3;

$h->endpage();

?> 
Edited by Dominion
code tags added
Posted

thanks lucky but now theres anouther problem : Parse error: syntax error, unexpected T_SL in /home/husain/public_html/explore.php on line 82

Posted

Don't use those <<EOF... it makes the code unreadable and basically that's your issue.

For this specific error: Line 77 contains double quotes within a double quoted string without any escape character... Must be written:

print "
[*]<a href=\"http://cyberbank.php\" target=\"_blank\">Cyber Bank</a>";
Posted

This shouldnt give you any errors.

<?php


include "globals.php";
?>
  <html>
  <head>
  <script type="text/javascript" src="tabs.min.js"></script>
  <style type="text/css">
     #explore {
     color:#6688DD;
     float:left;
     font-family:Cambria,Times New Roman,serif;
     font-size:1.3em;
     font-stretch:normal;
     font-style:italic;
     font-weight:normal;
     line-height:normal;
     width:100px;
     }
     #explore li a {
     background:#222222 none repeat scroll 0 0; /* Change this value to change the backgroud of the tabs */
     display:block;
     font-size:0.8em; /* Change this value to change the font size in the tabs */
     font-style:normal;
     font-weight:bold;
     margin:1px;
     padding:2px 6px 4px;
     text-align:left;
     text-decoration:none;
     width:90px; /* Change this value to change the width of the tabs */
     }
     #explore li a:hover {
     background:#0A0A0A none repeat scroll 0 0; /* Change this value to change the color of when the tab is hovered over */
     width:90px /* This value should be the same as the width of the tabs above */
     }
     #explore li a.selected {
     background:#FFFFFF none repeat scroll 0 0; /* Change this value to change the color of the tab when it is active */
     color:#000000;
     cursor:default;
     width:90px; /* This should also be the same as the two above widths */
     }
     .container {
     background:#181818 none repeat scroll 0 0; /* Change this value to change the background color of the links container */
     border:1px solid #222222;
     margin:20px auto;
     padding-top:2px;
     width:400px; /* Change this value to change the width of links container */
     }
     .container p {
     padding:2px 12px 10px;
     text-align:left;
     }
  </style>
  </head>
  <body>

<?php
$tresder=(int) rand(100,999);

if($ir['jail'] or $ir['hospital'])
{
  die("This page cannot be accessed while in jail or hospital.");
}

$q = $db->query("SELECT u.*,c.* FROM users u LEFT JOIN cities c ON u.location=c.cityid WHERE (u.userid=$userid)");
$r = $db->fetch_row($q);

echo '
  <b>You begin exploring the area youre in, you see a bit that interests you.</b>

  <ul id="explore" class="idTabs">[*]<a href="http://#markplace" target="_blank">Market Place</a>[*]<a href="http://#smm" target="_blank">Serious Money Makers</a>[*]<a href="http://#darkside" target="_blank">Dark Side</a>[*]<a href="http://#statdept" target="_blank">Stats Dept.</a>[*]<a href="http://#mystery" target="_blank">Mysterious</a>[/list]   <div class="container">
     <ul id="markplace">[*]<a href="http://shops.php" target="_blank">Shops</a>[*]<a href="http://itemmarket.php" target="_blank">Item Market</a>[*]<a href="http://cmarket.php" target="_blank">Crystal Market</a>[/list]      <ul id="smm">[*]<a href="http://monorail.php" target="_blank">Travel Agency</a>[*]<a href="http://estate.php" target="_blank">Estate Agent</a>[*]<a href="http://bank.php" target="_blank">City Bank</a>
';

if($ir['location'] == 5)
  echo '[*]<a href="http://cyberbank.php" target="_blank">Cyber Bank</a>';

echo '</list>     <ul id="darkside">[*]<a href="http://gangcentral.php" target="_blank">Gangs</a>[*]<a href="http://gangwars.php" target="_blank">Gang Wars</a>[*]<a href="http://fedjail.php" target="_blank">Federal Jail</a>[*]<a href="http://slotsmachine.php?tresde=$tresder" target="_blank">Slots Machine</a>[*]<a href="http://roulette.php?tresde=$tresder" target="_blank">Roulette</a>[*]<a href="http://lucky.php" target="_blank">Lucky Boxes</a>[/list]      <ul id="statdept">[*]<a href="http://userlist.php" target="_blank">User List</a>[*]<a href="http://stafflist.php" target="_blank">'.$set['game_name'].' Staff</a>[*]<a href="http://halloffame.php" target="_blank">Hall of Fame</a>[*]<a href="http://stats.php" target="_blank">Game Stats</a>[*]<a href="http://usersonline.php" target="_blank">Users Online</a>[/list]      <ul id="mystery">[*]<a href="http://crystaltemple.php" target="_blank">Crystal Temple</a></list></div>






  This is your referal link: http://'.$domain.'/register.php?REF='.$userid.'

  Every signup from this link earns you two valuable crystals!

  </body>
  </html>
';

$h->endpage();

?>

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.

×
×
  • Create New...