PDA

View Full Version : Help please...


Steelghost600
05-13-2009, 03:44 PM
Can you help me with this?

Parse error: syntax error, unexpected T_STRING in /home/a6886843/public_html/adoptables/inc/functions.php on line 13

I really need help.

BMR777
05-13-2009, 04:31 PM
Did you edit functions.php at all by any chance? Did you have the script running ok first and then start getting this error? Did you successfully run the installer? I need more details. :)

Steelghost600
05-13-2009, 05:07 PM
$conn = mysql_connect($dbhost= ************** $dbuser= ****** $dbpass= ***********) or die ('Error connecting to MySQL');

What am I doing wrong?


PS. This is my website:
http://www.bakuadopts.comxa.com/

BMR777
05-13-2009, 05:09 PM
You didn't answer my questions. Did you get the script up and running previously or not? Did you change the functions.php file at all from the original version?

Tezna
05-13-2009, 05:12 PM
Did you mess with the template? Because the install is up, but its not showing any images?

Steelghost600
05-13-2009, 05:20 PM
Sorry BMR777 I will anwser your questions, no(I dont know how to get the up and running) and yes.

BMR777
05-13-2009, 05:22 PM
Ok, first off why did you change the functions.php file, especially if you didn't even get it up and running yet? What changes did you make?

Steelghost600
05-13-2009, 05:24 PM
Umm I changed the dbhost, the dbuser and the dbpass and db name. thats it.

BMR777
05-13-2009, 05:28 PM
Um, if you need to change them you do that in config.php, not functions.php.

Did you even run the installer? Why is the installer at the root of your domain? The installer should be at http://www.bakuadopts.comxa.com/install/index.php, not at http://www.bakuadopts.comxa.com/.

I don't know why people keep moving the installer files outside of the install folder. :(

Brandon

Steelghost600
05-13-2009, 05:30 PM
Thanks. but im not sure if I moved the folder. but thanks again.

BMR777
05-13-2009, 05:32 PM
Wait, did you upload only what was inside the install folder? That's how it appears your site is set up. You need to upload everything, all the files, then run the installer from http://www.bakuadopts.comxa.com/install/index.php to set up the site.

SJC
05-13-2009, 05:34 PM
The /install/ directory is located at this: http://www.bakuadopts.comxa.com instead of this: http://www.bakuadopts.comxa.com/install

BMR777
05-13-2009, 05:35 PM
The /install/ directory is located at this: http://www.bakuadopts.comxa.com instead of this: http://www.bakuadopts.comxa.com/install


Yeah, but it shouldn't be. The way he has it set up indicates to me that he uploaded the files incorrectly as the installer is at the root of his domain, which it should not be. :)

SJC
05-13-2009, 05:37 PM
Ah, okay.

Steelghost600
05-13-2009, 07:07 PM
I did upload everything. How should I upload the files then?

BMR777
05-13-2009, 07:12 PM
Upload everything inside the "adoptables" folder to your "public_html" folder. That should work. :)

Steelghost600
05-13-2009, 07:17 PM
okay will do.[hr]
This is weird... this is what's weird:

Warning: mysql_connect() [function.mysql-connect]: Access denied for user '******'@'*********' (using password: ***) in /home/a6886843/public_html/adoptables/inc/functions.php on line 13

and I havent even edited the functions.php... huh weird.

Tezna
05-13-2009, 08:26 PM
I'll go do everything, just a second.

Steelghost600
05-13-2009, 08:28 PM
ok thanks you.

Tezna
05-13-2009, 08:30 PM
Its under review, I'll be done, but you want be able to see anything for a while...

DONE!

Steelghost600
05-13-2009, 08:33 PM
ok thanks again.

Tezna
05-13-2009, 08:35 PM
If you need any help with stuff like templates e-mail me. ;D

Steelghost600
05-13-2009, 08:37 PM
wait a minute. I just tryed to install the thing to my site and its not working. its not working :(

Seapyramid
05-13-2009, 10:12 PM
wait a minute. I just tryed to install the thing to my site and its not working. its not working :(


Steel have you any HTML, PHP, MYSQL or FTP knowledge? we really should know your level of knowledge at this point before even questioning your issues.

Steelghost600
05-14-2009, 01:47 PM
I have some knowledge for HTML.

Seapyramid
05-14-2009, 01:52 PM
OK what error exactly are you getting when you go to the www.yoursite.com/install/ ?

Steelghost600
05-14-2009, 04:27 PM
This error I am getting now and I know what to do but I dont know how to do it.


PHP Error Message

Warning: mysql_connect() [function.mysql-connect]: Access denied for user '******'@'********' (using password: ***) in /home/a6886843/public_html/adoptables/inc/functions.php on line 13

Free Web Hosting
Error connecting to MySQL

BMR777
05-14-2009, 04:31 PM
It means the database details you entered are incorrect. Make sure you entered in the right data.

Steelghost600
05-14-2009, 04:37 PM
in config.php? or no.

BMR777
05-14-2009, 04:40 PM
You can download your config.php file using a FTP program and open it in a text editor like Wordpad to view or change the database information. Make sure the info in the file is correct and if need be change the info and re-upload config.php.

Steelghost600
05-14-2009, 04:45 PM
Is config.php suppost to have nothing in it? cause Im using a mac laptop and im using "sub etha edit"(or what ever its called).
Edit: oops my bad wrong config.php file.
EDIT2: Why is it not working? :(

BMR777
05-14-2009, 04:47 PM
No, it should not be blank. Did you run the installer? I'm guessing you didn't.

Steelghost600
05-14-2009, 05:01 PM
The installer's running and I found the config file thats not blank. But I filled the stuff all correctly and Its still doing this. ARG!

BMR777
05-14-2009, 05:03 PM
What's the link to your installation? You seem to have changed the link as the old one leads to a website built with some sitebuilder.

Steelghost600
05-14-2009, 05:06 PM
oh the installation is right here:

http://www.bakuadopts.comxa.com/adoptables/install/ its right there.

BMR777
05-14-2009, 05:20 PM
The only thing that can be causing that error is if the details are incorrect. I know they vary on 000webhost depending on what server you are on. Maybe they use a database host other than localhost?

Steelghost600
05-14-2009, 05:24 PM
hmm maybe....
EDIT: Huh its still not working. grrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr!

SJC
05-14-2009, 08:22 PM
For 000webhost, to get the MySql details, (In the control panel, not the file manager) go to MySQL (What you click on to make/ see MySql databases), then if you already have a database made, look at the table, the database your using, and next to it it should be the three details you need, database name (when you type the database name in, dont forget to include your username, example: aksf850_adopt), database username, and the MySQL host name.
Hope that helps.

Tezna
05-15-2009, 04:56 PM
I'll Install it for you, I just need to know what you want your username and pass will be for the adoptables.

Bloodrun
05-15-2009, 05:04 PM
I'll Install it for you, I just need to know what you want your username and pass will be for the adoptables.


Please take discretion when giving out passwords.

Tezna
05-16-2009, 04:09 PM
http://www.bakuadopts.comxa.com/adoptables/
DONE!

Steelghost600
05-16-2009, 05:32 PM
Thank you so much!!!!!! I luv u!!!!!!!! just kidding!