PHP error message

PHP error message

Page 1 of 1

2 Replies - 1390 Views - Last Post: 20 September 2006 - 05:51 AM Rate Topic: -----

#1 david4u  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 38
  • Joined: 26-April 06

PHP error message

Posted 20 September 2006 - 04:46 AM

Goodday everyone, I wrote a php code that registered users and and it works well but if I register a name and click save and continue it saves and brings me back to my menu instead of opening a new page to continue the resgistration and it shows this message:

" There is no 'user'@'localhost' registered" ....

I have looked at my conection code, the user name and password for the database is correct. So what is the problem?

Can anyone explain please.

Thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: PHP error message

#2 snoj  Icon User is offline

  • Married Life
  • member icon

Reputation: 84
  • View blog
  • Posts: 3,564
  • Joined: 31-March 03

Re: PHP error message

Posted 20 September 2006 - 05:08 AM

Without having any code, I would assume that you don't have access to a database, your username/password is wrong, or variables related to connecting are conflicting others.
Was This Post Helpful? 0
  • +
  • -

#3 david4u  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 38
  • Joined: 26-April 06

Re: PHP error message

Posted 20 September 2006 - 05:51 AM

Thanks.
But my db conection is correct and it works...see below

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_dbConnect = "localhost";
$database_dbConnect = "company";
$username_dbConnect = "user";
$password_dbConnect = "user";
$dbConnect = mysql_pconnect($hostname_dbConnect, $username_dbConnect, $password_dbConnect) or die(mysql_error());
?>

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1