Jump to content

PHP mysql help


tinamiller1

Recommended Posts

I have a website hosted by yahoo and i am trying to write to my own mysql db. i dont want to use theirs because i cant run reports or anything. This is the code I have for mine and I have tried everything from my IP address to the name of mysql and nothing seems to connect. Can anyone offer some advice or help with this?

 

<?php

$dbname = 'rchothobbies';

$link = mysql_connect("192.168.1.102", "root", "root") or die("Couldn't make connection.");

$db = mysql_select_db($dbname, $link) or die("Couldn't select database");

?>

Link to comment
Share on other sites

Well Yahoo Merchant has the PHPMyAdmin and Mysql on their site and I can connect fine to it by doing mysql as the server and then the username and password. It works great. They just have no report capabilities or macros I can do. So to do that I would have to export to excel and upload to the database on my local computer. Which seems to me to be needless work. So I created a database on my local computer and tried connecting to it but it will never connect.

 

 

Link to comment
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.