...

View Full Version : Syntax Error. Parse error: syntax error (unexpected T_DNUMBER)



Mujib
10-22-2009, 05:36 PM
Hello,

Im having a error (See Below).

Parse error: syntax error, unexpected T_DNUMBER in /home/assassin/domains/realdutchserver.nl/public_html/webformysql/mysql.php on line 2

And This is My Script (See Below)

<?php
$host = 217.18.70.82;
$username = server5646;
$password = Password;
$database = server5646;
?>

Please help me,

Thanks in advance,
Greets,
Mujib

kbluhm
10-22-2009, 06:02 PM
<?php
$host = '217.18.70.82';
$username = 'server5646';
$password = 'cxS35EybRXtD4PT8';
$database = 'server5646';
?>

Fumigator
10-22-2009, 06:04 PM
Strings must be enclosed in quotes, either single or double. Without quotes PHP thinks you are assigning a number, and your "number" has too many decimal points :D

kbluhm
10-22-2009, 06:04 PM
Strings must be enclosed in quotes, either single or double. Without quotes PHP thinks you are assigning a number, and your "number" has too many decimal points :D

I actually began editing my reply to say just that, but decided not to get into it. Well put. :)

_Aerospace_Eng_
10-22-2009, 06:07 PM
I suggest you remove your mysql details from your post because it appears to be real. Anyone can login to your server.

Mujib
10-22-2009, 06:08 PM
Thank You Very Much Both Of You!

I hope more people will thank you!

Fumigator
10-22-2009, 06:23 PM
I suggest you remove your mysql details from your post because it appears to be real. Anyone can login to your server.

Yeah I just pinged it... wow. You should probably change your password asap.

Mujib
10-22-2009, 06:30 PM
I cant change their post

Fumigator
10-22-2009, 06:43 PM
You really should be developing and testing on a local server anyway. I love XAMPP for this... very easy to install and use.

http://www.apachefriends.org/en/xampp.html

abduraooft
10-22-2009, 06:44 PM
I cant change their post Just change your username and password then :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum