Jump to content

Recommended Posts

I have built and am using a dB on domain 1 that I would like to use some data on domain 2 for display only.

I have created username and added username to the database and only given that user select permissions only. I keep getting the following errors:

 

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'arscnaor_tana'@'23-241.bluehost.com' (using password: YES) in /home3/simplic5/public_html/texarkana/meetings/test_meetings.php  on line 7

 

Notice: Access denied for user 'arscnaor_tana'@'23-241.bluehost.com' (using password: YES) in /home3/simplic5/public_html/texarkana/meetings/test_meetings.php on line 7

 

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /home3/simplic5/public_html/texarkana/meetings/test_meetings.php on line 8

Access denied for user 'arscnaor_tana'@'23-241.bluehost.com' (using password: YES)

 

First question is Can I display data from one domain on a page in another domain?

 

Second if so where am I going wrong?

Here is my code:

<?php
ini_set ("display_errors", "1");
error_reporting(E_ALL);
session_start();
//connect to server and select database
$db_name = "arscnaor_meetings";
$connection = mysql_connect("arscna.org", "user", "pass") or trigger_error(mysql_error());
$db = mysql_select_db($db_name, $connection) or die(mysql_error());
?>

 

 

Link to comment
https://forums.phpfreaks.com/topic/194405-remote-access-mysql/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.