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
https://forums.phpfreaks.com/topic/126269-php-mysql-help/
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
https://forums.phpfreaks.com/topic/126269-php-mysql-help/#findComment-652986
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.