View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

updating connections in localhost.php

Thread began 6/23/2009 10:59 pm by berndrendic374326 | Last modified 6/24/2009 12:08 pm by berndrendic374326 | 1561 views | 2 replies


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

# 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

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





Ease of use


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