Stan wrote:
So ... if I enter "mysql -h mysqlServer -u stan -p" and then enter the
password, I get connected without a problem ... I get the mysql client prompt.
You haven't selected a db.
Inside mysql:
use database_name;
And the mysql_connect() statement in my code does not "die".
But th
Okay, on the command line, then connect, and then select your database,
what's the error message it gives?
-Micah
On 10/21/2008 11:06 AM, Stan wrote:
So ... if I enter "mysql -h mysqlServer -u stan -p" and then enter the
password, I get connected without a problem ... I get the mysql client p
So ... if I enter "mysql -h mysqlServer -u stan -p" and then enter the
password, I get connected without a problem ... I get the mysql client prompt.
And the mysql_connect() statement in my code does not "die".
But the mysql_select_db() statement in my code does "die".
"Micah Stevens" <[EMAIL P
Try it on the command line from the webserver:
mysql -h hostname -u Stan -p Password
See if that connect works.
-Micah
On 10/21/2008 04:26 AM, Stan wrote:
Nope ... that wasn't it.
The mysql_connect() works.
It's the mysql_select_db() that's failing.
--
PHP Database Mailing List (htt
Nope ... that wasn't it.
The mysql_connect() works.
It's the mysql_select_db() that's failing.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
My include, navigationDB.inc, contains:
CODE:
END CODE:
(no change) and I added an instance of that user with that password at the
new IP address on the MySQL server before testing.
Hmmm ...
but what I didn't do was restart MySQL.
--
PHP Database Mailing List (http://www.php.net/)
To unsub
On 20 Oct 2008, at 13:03, Stan wrote:
UBUNTU Server v8.04
On a web page:
CODE:
require_once 'frames_includes/navigationDB.inc';
$navigation_connection = mysql_connect($navigation_hostName,
$navigation_userName,
$navigati
> A friendly error message advised me that "mysql_db_query" is
deprecated
> and
> to use "mysql_select_db() and
>
> mysql_query()". but I can't seem to get past this return in the
Browser:
> "Parse error: parse error in c:\program files\apache
>
> group\apache\htdocs\crup_hs_local\result.php on l
Hi Dan,
Dan Martin wrote:
group\apache\htdocs\crup_hs_local\result.php on line 58". I think I don't
understand the basic syntax.
/*$result = mysql_db_query($dbname,$sql);*/
/*mysql_db_query is deprecated; use mysql_select_db() and mysql_query()*/
$result = mysql_select_db($dbname) or die(mysql_