PDA

View Full Version : help with error


Lady_Olive
04-02-2009, 04:39 AM
Hi guys,

I added the adoptable page to my website, but when I try to go to the link on mywebsite, I get this error

Parse error: syntax error, unexpected T_STRING in /home/angels/domains/borrowedangels.com/public_html/pets/index.php on line 1

could someone explain to me what went wrong? I followed one of the tutorials, and I filled out eveyrthing as it was supposed to be :(

thanks for your help!:D

BMR777
04-02-2009, 02:39 PM
Can I have a link to your site please?

Also, try re-uploading the index.php file. Maybe it did not upload all the way or was corrupted.

Lady_Olive
04-03-2009, 05:47 AM
the link to my website is

http://www.borrowedangels.com/pets/index.php

thanks a lot :D

BMR777
04-03-2009, 09:51 AM
Ok, please open your index.php in a text editor and paste the contents here so I can take a look.

You have any additional modifications on your site you made to the program?

Lady_Olive
04-03-2009, 09:54 AM
Ok, please open your index.php in a text editor and paste the contents here so I can take a look.

You have any additional modifications on your site you made to the program?


The only thing I changed was the titel of the site :s

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content="cs" />
<meta name="robots" content="all,follow" />

<meta name="author" content="All: ... [Nazev webu - www.url.cz]; e-mail: info@url.cz" />
<meta name="copyright" content="Design/Code: Vit Dlouhy [Nuvio - www.nuvio.cz]; e-mail: vit.dlouhy@nuvio.cz" />

<title>Shee Garden Minis</title>
<meta name="description" content="..." />
<meta name="keywords" content="..." />

<link rel="index" href="./" title="" />
<link rel="stylesheet" media="screen,projection" type="text/css" href="templates/crystalx/css/main.css" />
<link rel="stylesheet" media="print" type="text/css" href="templates/crystalx/css/print.css" />
<link rel="stylesheet" media="aural" type="text/css" href="templates/crystalx/css/aural.css" />
</head>

<body id="www-url-cz">

<!-- Main -->
<div id="main" class="box">

<!-- Header -->
<div id="header">

<!-- Logotyp -->
<h1 id="logo"><a href="index.php" title="">My Borrowed Angels Adoptables <span></span></a></h1>
<hr class="noscreen" />

<!-- Quick links -->
<div class="noscreen noprint">
<p><em>Quick links: <a href="#content">content</a>, <a href="#tabs">navigation</a>, <a href="#search">search</a>.</em></p>
<hr />
</div>

<!-- Search -->
<div id="search" class="noprint">
<form action="" method="get">
<fieldset><legend>Search</legend>
<label><span class="noscreen">Find:</span>
<span id="search-input-out"><input type="text" name="" id="search-input" size="30" /></span></label>
<input type="image" src="templates/crystalx/design/search_submit.gif" id="search-submit" value="OK" />
</fieldset>
</form>
</div> <!-- /search -->

</div> <!-- /header -->

<!-- Main menu (tabs) -->
<div id="tabs" class="noprint">

<h3 class="noscreen">Navigation</h3>
<ul class="box">
<li><a href="index.php">Home<span class="tab-l"></span><span class="tab-r"></span></a></li>
<li><a href="adopt.php">Adopt<span class="tab-l"></span><span class="tab-r"></span></a></li>
<li><a href="myadoptables.php">My Adoptables<span class="tab-l"></span><span class="tab-r"></span></a></li>
<li><a href="account.php">My Account<span class="tab-l"></span><span class="tab-r"></span></a></li>
<li><a href="tos.php">Terms of Service<span class="tab-l"></span><span class="tab-r"></span></a></li>
<li><a href="extrapage.php">Donate!<span class="tab-l"></span><span class="tab-r"></span></a></li>
<li><a href="http://sheegarden.com/sim/viewforum.php?f=14">Forum<span class="tab-l"></span><span class="tab-r"></span></a></li>

</ul>

<hr class="noscreen" />
</div> <!-- /tabs -->

<!-- Page (2 columns) -->
<div id="page" class="box">
<div id="page-in" class="box">

<div id="strip" class="box noprint">



</div> <!-- /strip -->

<!-- Content -->
<div id="content">

<!-- Article -->
<div class="article">
<h2><span><a href="#">Have an Idea?</a></span></h2>
<p class="info noprint">
<span class="date">2009 03 16</span><span class="noscreen">,</span>

</p>

Contest for the design a Shee is still going on in the forums! Post your ideas! The winner will receive a ONE OF A KIND Shee egg! <img src="smileys/smile.gif" width="" height="" alt=":)" title=":)" class="bbcode_smiley" />


</div> <!-- /article -->



</div> <!-- /content -->

<!-- Right column -->
<div id="col" class="noprint">
<div id="col-in">

<!-- About Me -->
<h3><span><a href="#">Featured Adoptable:</a></span></h3>

<div id="about-me">
<p><img src='http://sheegarden.com/test/pets/earth/earthpreteen.png' id='me' alt='Featured Adoptable'>
<strong><a href='show.php?id=1872'>Leaf Shee</a></strong><br />
Level: 4<br />
Owner: abc123kcool<br />
<a href='levelup.php?id=1872'>Add more HP</a></p>
</div> <!-- /about-me -->

<hr class="noscreen" />

<!-- Category -->
<h3 ><span><u>Welcome Back:</u></span></h3>

<ul id="category">Welcome back LadyOlive. <br><br><a href="account.php">Click here to view or edit your account.</a><br><br><a href="logout.php">Log Out</a>

</ul>

<hr class="noscreen" />



</div> <!-- /col-in -->
</div> <!-- /col -->

</div> <!-- /page-in -->
</div> <!-- /page -->

<!-- Footer -->
<div id="footer">
<div id="top" class="noprint"><p><span class="noscreen">Back on top</span> <a href="#header" title="Back on top ^">^<span></span></a></p></div>
<hr class="noscreen" />

<p id="createdby">Template by <a href="http://www.nuvio.cz">Nuvio</a> <!-- DON�T REMOVE, PLEASE! --></p>
<p id="copyright">Powered By <a href="http://www.rusnakweb.com/forum/" target="_blank">EasyAdopables PHP Script</a></p>
</div> <!-- /footer -->


</div> <!-- /main -->

</body>
</html>

BMR777
04-03-2009, 09:57 AM
It looks like you pasted in the template file. I need to see the index.php file that you have in the pets/ directory.

Lady_Olive
04-03-2009, 10:00 AM
eeh... that's the one I have in my main pets folder

BMR777
04-03-2009, 10:05 AM
Well then, that's not the correct file. Re-download the current download package and re-upload and re-install to your site without making any alterations.

Lady_Olive
04-03-2009, 11:42 AM
okay, I deleted the folder and created everything again. I got a step further, except now I get the following errors :(


Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in /home/angels/domains/borrowedangels.com/public_html/adoptables/index.php on line 83

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/angels/domains/borrowedangels.com/public_html/adoptables/index.php on line 89

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/angels/domains/borrowedangels.com/public_html/adoptables/index.php on line 90

Warning: mysql_result(): supplied argument is not a valid MySQL result resource in /home/angels/domains/borrowedangels.com/public_html/adoptables/index.php on line 91

Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/angels/domains/borrowedangels.com/public_html/adoptables/inc/functions.php on line 50


I didn't change anything except the config.php as said
oh and the new link is: http://www.borrowedangels.com/adoptables/

BMR777
04-03-2009, 04:35 PM
Ok. Did you run the SQL queries from SQL.txt on your database? You need to run them on the database using PHPMyAdmin and that should solve the problem. :)

Lady_Olive
04-03-2009, 06:29 PM
yeah I copied the text from the sql.text in to the SQL box on the myPHP like it said in the tutorial, but it doesn't work :(

BMR777
04-03-2009, 06:46 PM
You sure you ran it on the right database?

Lady_Olive
04-04-2009, 06:23 AM
I fixed it :) turns out I had put the db_name my domain name :P now it all seems correct :D

I just need to figure out how to change the theme :D