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 8423477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T03:44:01+00:00 2026-06-10T03:44:01+00:00

I can connect to my localhost and get info from a local phpMyAdmin database.

  • 0

I can connect to my localhost and get info from a local phpMyAdmin database.

Now I want from a php file, that is stored on my local computer, but now the php file refers me to go to an external website:

<?php

//mysql_connect('localhost','root','root');
mysql_connect("http://eternal website","username","password");

mysql_select_db("dlvplant_portret_v1");

$q=mysql_query("SELECT * FROM people WHERE voornaam LIKE '%%'");
//$q=mysql_query("SELECT * FROM people WHERE voornaam ='""'");

while($e=mysql_fetch_assoc($q))

    $output[]=$e;

print(json_encode($output));

mysql_close();

?>

I tried the link and copy/paste the username and pass and I use the good website link. (the link brings me at the myPhpAdmin login from the server). So everything works and is filled in good. But when I try to connect with my android phone (from phone to local comp’s php file) then the php file refers me to go to external webpage, but it says: Host is unknown

Is it even possible to go from local to external and back again?

enter image description here

  • 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-06-10T03:44:02+00:00Added an answer on June 10, 2026 at 3:44 am

    You should use plain ip address(xxx.xxx.xxx.xxx) or single “DOMAIN.SOMETHING” instead of “http://DOMAIN.SOMETHING”

    mysql_connect("IPADDRESS","username","password");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

trying to get my first little PHP script to connect to a local mySql
How can connect iPhones, so that when a function is called on one iPhone,
I can connect manually by doing: M-x sql-postgres and type the User, Database, Host,
I can connect to server and get json data. it is in this format:
To test if i can connect to my database, I execute the following code
I've made a chat that I can connect with Telnet to. My chat is
In code igniter, you can connect database and make queries in controller like: $this->db->query(Your
Currently I using the following code to get my JSON output from MySQL. <?php
i have problem with connection.. I can connect without problems to my database, when
I have this code in PHP $max=SELECT MAX(num) FROM info; $maxquery= mysql_query($max) or die

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.