Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 10 of 10
  1. #1
    New Coder
    Join Date
    Jul 2009
    Posts
    21
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Syntax Error. Parse error: syntax error (unexpected T_DNUMBER)

    Hello,

    Im having a error (See Below).
    Code:
    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 Code:
    <?php
    $host 
    217.18.70.82;
    $username server5646;
    $password Password;
    $database server5646;
    ?>
    Please help me,

    Thanks in advance,
    Greets,
    Mujib
    Last edited by Mujib; 10-22-2009 at 05:29 PM.

  • #2
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    PHP Code:
    <?php
    $host 
    '217.18.70.82';
    $username 'server5646';
    $password 'cxS35EybRXtD4PT8';
    $database 'server5646';
    ?>

  • Users who have thanked kbluhm for this post:

    Mujib (10-22-2009)

  • #3
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    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

  • #4
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    Quote Originally Posted by Fumigator View Post
    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
    I actually began editing my reply to say just that, but decided not to get into it. Well put.

  • #5
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    I suggest you remove your mysql details from your post because it appears to be real. Anyone can login to your server.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #6
    New Coder
    Join Date
    Jul 2009
    Posts
    21
    Thanks
    5
    Thanked 0 Times in 0 Posts
    Thank You Very Much Both Of You!

    I hope more people will thank you!

  • #7
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    Quote Originally Posted by _Aerospace_Eng_ View Post
    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.

  • #8
    New Coder
    Join Date
    Jul 2009
    Posts
    21
    Thanks
    5
    Thanked 0 Times in 0 Posts
    I cant change their post

  • #9
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    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

  • #10
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,854
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Quote Originally Posted by Mujib View Post
    I cant change their post
    Just change your username and password then
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •