close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

updating connections in localhost.php

Thread began 6/23/2009 7:59 pm by berndrendic374326 | Last modified 6/24/2009 9:08 am by berndrendic374326 | 3174 views | 2 replies |

berndrendic374326

updating connections in localhost.php

hey guys I have finally managed to create database etc but i am now having problems with updating conections in localhost php part ... ok here is the code , can someone tell me what am i suposed to put here...

i am on wamp server doing it localy and normally i test my site on localhost/

so do i type localhost in $hostname_localhost line

what about $database_localhost? is that the name i gave to my database in myadmin php?
and $username_localhost whats that?
is that the admin name i put in wa globals in line 24? or something else

<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_localhost = "localhost";
$database_localhost = "";
$username_localhost = "";
$password_localhost = "";
$localhost = mysql_pconnect($hostname_localhost, $username_localhost, $password_localhost) or trigger_error(mysql_error(),E_USER_ERROR);
?>



I keep getting this error msg ;

Warning: mysql_pconnect() [function.mysql-pconnect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\wamp\www\hfsss\Connections\localhost.php on line 9


thanks in advance

Sign in to reply to this post

Ray BorduinWebAssist

$hostname_localhost = "localhost";
$database_localhost = "";
$username_localhost = "";
$password_localhost = "";

you need to have a value for your database name username and password. Those can't be left blank.

Sign in to reply to this post
Did this help? Tips are appreciated...

berndrendic374326

Thanks for reply i Ve got it working ...

if you use User reg park as it is without re-naming anything in it then this is what works for me ;

$hostname_localhost = "localhost";
$database_localhost = "mysql";
$username_localhost = "root";
$password_localhost = "";


and password .... not needed to get it run

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...