Error establishing a database connection

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • coastrecon
    Private

    • Jul 2009
    • 2

    Error establishing a database connection

    Hi I keep getting this error message when trying to log into my Word Press account
    Error establishing a database connection


    my brother tried logging in on his comp. as well but with no luck, he uses Go ***** as his provider so we can only guess that the problem resides with my Blue Voda account as his website is accesable.
    If you try this url you will see what I mean.



    Thank you kindly
    Drew
  • aajayaprakash
    Private

    • Apr 2009
    • 4

    #2
    Re: Error establishing a database connection

    Dear Sir
    I have working update in php file below the coading working in localhost in our system but this coading send to our server that is not working any one help
    this
    if($_GET['activation_code'])
    {
    $time_now=mktime(date('h')+0,date('i')+0);
    $a=date('h:i:s',$time_now);
    echo $b=date("Y-m-d");
    include'dbc.php';



    $con = mysql_connect("localhost","root","aid");
    if (!$con)
    {
    die('Could not connect: ' . mysql_error());
    }

    mysql_select_db("my_db", $con);

    mysql_query("UPDATE emp_att SET notes = '$notes', report='$report', out_time1='$a'
    WHERE activation_code = '$activ_code' AND date = '$b'");

    mysql_close($con);


    Regares
    AJP

    Comment

    • coastrecon
      Private

      • Jul 2009
      • 2

      #3
      Re: Error establishing a database connection

      IM sorry but I don't understand anything about codeing, what should I do?
      Thank You Drew Plumbe

      Comment

      • Karen Mac
        General

        • Apr 2006
        • 8332

        #4
        Re: Error establishing a database connection

        stop adding code you know nothing about.

        Go here


        to learn how to install wordpress

        Karen

        VodaHost

        Your Website People!
        1-302-283-3777 North America / International
        02036089024 / United Kingdom
        291916438 / Australia

        ------------------------

        Top 3 Best Sellers

        Web Hosting - Unlimited disk space & bandwidth.

        Reseller Hosting - Start your own web hosting business.

        Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


        Comment

        • aajayaprakash
          Private

          • Apr 2009
          • 4

          #5
          Re: Error establishing a database connection

          Originally posted by coastrecon View Post
          Hi I keep getting this error message when trying to log into my Word Press account
          Error establishing a database connection


          my brother tried logging in on his comp. as well but with no luck, he uses Go ***** as his provider so we can only guess that the problem resides with my Blue Voda account as his website is accesable.
          If you try this url you will see what I mean.



          Thank you kindly
          Drew
          Thanks sir now only i got wordpress

          Comment

          • wysiwyg4
            Major

            • Nov 2007
            • 477

            #6
            Re: Error establishing a database connection

            Hi coastrecon

            Your blog seems OK at this end.
            Doable Personal Finance

            Comment

            • aajayaprakash
              Private

              • Apr 2009
              • 4

              #7
              Re: Error establishing a database connection

              dear sir
              I am working attendance sheet in php
              i have update command its working in localhost but the same coading not working server any one can help me
              regards AJP

              Comment

              • aajayaprakash
                Private

                • Apr 2009
                • 4

                #8
                update problems

                dear sir
                I am working attendance sheet in php
                i have update command its working in localhost but the same coading not working server any one can help me
                regards AJP

                Comment

                Working...
                X