Domain Name Forum  

Go Back   Domain Name Forum > Web Design & Development > Programming
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-21-2012, 12:29 AM
jackwebso jackwebso is offline
Member
 
Join Date: Jun 2012
Posts: 34
Default Need Help in Access Error

Hello Again,

Please help with this link problem.

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'myuser'@'localhost' (using password: XYZ@123)


<?php
function connectTo() {
$host = "localhost";
$db_name = "myDB";
$username = "myUser";
$password = "passs";
$link = mysql_connect("$host", "$username", "$password", "$db_name");
return $link;
}
?>

in another file is this line

$link = connectTo();

Thanks in advance
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:44 AM.

| Webmaster Forum | | Domain Name Forum |



Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.