Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6331985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:10:37+00:00 2026-05-24T18:10:37+00:00

First, let me note that the connection infomation is not the correct info. I

  • 0

First, let me note that the connection infomation is not the correct info. I made a database on 1and1 and I want to connect to it from the web. I am not getting the syntax correct here, can someone point me in the right direction?

Here is what I have:

//connect to DB
$dbc=mysql_connect('http://db232154114.db.1and1.com','db232154114','password');

mysql_select_db('tableName',$dbc)

Here are the errors that I am getting:

Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: 
getaddrinfo failed: No such host is known. in 
C:\xampp\htdocs\ciss225Testing\homework\final_process.php on line 35

Warning: mysql_connect() [function.mysql-connect]: [2002] php_network_getaddresses: 
getaddrinfo failed: No such host is kn (trying to connect via tcp://http:3306) in 
C:\xampp\htdocs\ciss225Testing\homework\final_process.php on line 35

Warning: mysql_connect() [function.mysql-connect]: php_network_getaddresses: 
getaddrinfo failed: No such host is known. in 
C:\xampp\htdocs\ciss225Testing\homework\final_process.php on line 35

Warning: mysql_select_db() expects parameter 2 to be resource, boolean given in 
C:\xampp\htdocs\ciss225Testing\homework\final_process.php on line 37
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T18:10:39+00:00Added an answer on May 24, 2026 at 6:10 pm

    Try to replace http://db232154114.db.1and1.com/ with IP address of SQL server you’re connecting to

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First do note that my english in not the best here. If anyone is
First let me note, that I use AspectJ and I like it, but what
First let me say that I really feel directionless on this question. I am
First let me state that, despite being a fairly new practitioner of TDD, I'm
First let me tell you what I want to achieve. I want a layout
First let me say that I did see this article: How to remove AspxAutoDetectCookieSupport
Let's say that if I read from www.example.com/number, I get a random number. In
This might seem phrased oddly at first, but let me explain through example. Note
Please note that although it sounds similar, this is not the common how to
Let's first get to an important note about my situation: I have 1 table

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.