When connecting to a database, dreamweaver gives the error message [MySQL Error

When I try to connect my MySQL database into dreamweaver, I insert all of the information (name, server, username, password), and when i click on select database, it reads:
MySQL Error#:1045
Access denied for user 'mresnik_mresnik'@'192.185.5.169' (using password: YES)
I am 100% sure that The details entered including username and password are correct, as I have contacted hostgator.com and they have stated that they can connect, and they advised that it may be an issue with either my files or dreamweaver.
Any help would be very much appreciated.

Login.php code:
<?php require_once('Connections/drama_database.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;   
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  return $theValue;
?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
  session_start();
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
  $_SESSION['PrevUrl'] = $_GET['accesscheck'];
if (isset($_POST['UserName'])) {
  $loginUsername=$_POST['UserName'];
  $password=$_POST['Password'];
  $MM_fldUserAuthorization = "userlevel";
  $MM_redirectLoginSuccess = "home.php";
  $MM_redirectLoginFailed = "loginfail.php";
  $MM_redirecttoReferrer = false;
  mysql_select_db($database_drama_database, $drama_database);
  $LoginRS__query=sprintf("SELECT username, password, userlevel FROM users WHERE username=%s AND password=%s",
  GetSQLValueString($loginUsername, "text"), GetSQLValueString($password, "text"));
  $LoginRS = mysql_query($LoginRS__query, $drama_database) or die(mysql_error());
  $loginFoundUser = mysql_num_rows($LoginRS);
  if ($loginFoundUser) {
    $loginStrGroup  = mysql_result($LoginRS,0,'userlevel');
    if (PHP_VERSION >= 5.1) {session_regenerate_id(true);} else {session_regenerate_id();}
    //declare two session variables and assign them
    $_SESSION['MM_Username'] = $loginUsername;
    $_SESSION['MM_UserGroup'] = $loginStrGroup;         
    if (isset($_SESSION['PrevUrl']) && false) {
      $MM_redirectLoginSuccess = $_SESSION['PrevUrl'];   
    header("Location: " . $MM_redirectLoginSuccess );
  else {
    header("Location: ". $MM_redirectLoginFailed );
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;  
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  return $theValue;
?>
<html>
<title>Drama Database - Login</title>
<head>
    <link href="images/favicon.ico" rel="icon" />
</head>
</html>
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<form ACTION="<?php echo $loginFormAction; ?>" id="loginform" name="loginform" method="POST">
<!--visual -->
<br>
<br>
<br>
<div align="center">
  <!--ACS Logo -->
  <img src="images/logo_acs_egham.gif" width="387" height="59" /><br>
<!--Drama Logo -->
<br>
<img src="images/bglogin.jpg" alt="Acs-Egham International School" width="246" height="153">
<br>
<!--Title -->
<h2>Drama Database Login</h2>
</center>
  </div>
  <table width="154" border="0" align="center">
    <tr>
      <td width="148">Username:<br />
        <span id="sprytextfield1">
        <label for="UserName"></label>
        <input type="text" name="UserName" id="UserName" />
      <span class="textfieldRequiredMsg">A value is required.</span></span></td>
    </tr>
    <tr>
      <td> </td>
    </tr>
    <tr>
      <td>Password:<span id="sprytextfield2"><br />
        <label for="Password"></label>
        <input type="password" name="Password" id="Password" />
      <span class="textfieldRequiredMsg">A value is required.</span></span></td>
    </tr>
    <tr>
      <td> </td>
    </tr>
    <tr>
      <td align="center"><input type="submit" name="LoginButton" id="LoginButton" value="Login" /></td>
    </tr>
    <tr>
      <td> </td>
    </tr>
  </table>
</form>
<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
</script>

Similar Messages

  • My powershot sx20is intermittently gives the following message --- lens error, restart camera.

    Sometimes on start up, the telephoto lens opens and the moves back and forth several times then stopping with the lens error message. After I restart the camera several times, the lens may operate. Often when the lens error message is given, the lens has not closed properly and comes to rest outside its normal closed position. Can this be fixed? I tried camera reset. Now camera reset on menu is faded out.

    It sounds like there may be a mechanical problem with the lens. It could be that some dirt got on the lens barrel and is preventing proper operation of the lens, or the zoom motor may be going bad, or the gear is worn out. There is also the possibility that the lens might be out of alignment. All of these can be expensive repairs, but if its dirt on the lens barrel, you might be able to clean that up by using an index card to gently see if there is any grit that's keeping the lens from functioning. Just insert the corner of the card a little bit in the space around the lens barrel and gently circle the lens. Be careful not to force anything into the body of the camera when doing this. If you are lucky, you will get any dirt out and free up the lens. Since the camera is basically from the end of 2009, the cost to repair it might be more than its' worth.
    Steve M.

  • "no ocijdbc11 in java.library.path" error when connecting a TNS database co

    Hi
    "no ocijdbc11 in java.library.path" error when connecting a TNS database connection
    I have the same problem 'error code' when testing the connection to a database although I have an APEX db that connects without a problem.
    I have re downloaded jre & SQL Developer just to ensure all files are where they should be with no luck.
    I've also tried most of the suggestions in various threads.
    Does anyone know what exactly causes this error?
    eg; should I be looking for a file called 'ocijdbc11' & put it into the 'java.library.path' path?
    Can anyone explain to a newbie at db connections what I should do?
    I'm using the 'thin' client as the checkbox is clear & I don't know what path to enter into the correct file to make this work??
    This is & needs to connect as a TNS connection & was working fine until recently, the only change I can think of is a move of files from the 'C' drive but I thought redownloading SQL Developer would slove this.
    Thanks

    When you reinstalled SQL Developer, did you install into a new directory (ie rename or delete the old directory first)?
    I don't know if system setup contains directory references (which might be invalid after moving the location of SQL Developer). Does renaming your system2.1.1.64.45 directory (in C:\Documents and Settings\username\Application Data\SQL Developer) help? Note that your connections are in the connections.xml file in the o.jdeveloper.db.connection.11.1.1.2.36.55.30 subdirectory of system2.1.1.64.45 - you will either need to export connections before renaming and then import again after or copy this file to test if you can connect.
    Finally, the TNS Names directory preference is just a way of telling SQL Developer where to look for the tnsnames.ora file, rather than just assuming it will pick the right one. If you go to create a new connection, do you get the right list of TNS aliases? If not, then set this preference to the directory where the right tnsnames.ora file lives.
    theFurryOne

  • IPhone 4S is not charging. Upon connecting to macbook air, it gives the power surge alert. Please help.

    iPhone 4S is not charging. Upon connecting to macbook air, it gives the power surge alert. Please help.

    What do you mean by "power surge alert"? What exactly does it say when you try to connect it? If you're talking about the message about a USB device drawing too much power, that can sometimes be caused by a bad cable or something stuck in the port. Do you have another cable you can try?
    = L.I.

  • I keep getting this error in Dreamweaver when I am trying to upload my website?  Can you tell me what I am doing wrong?  here is the error message: /html - error occurred - Unable to create remote folder /html.  Access denied.  The file may not exist, or

    I keep getting this error in Dreamweaver when I am trying to upload my website?  Can you tell me what I am doing wrong?  here is the error message: /html - error occurred - Unable to create remote folder /html.  Access denied.  The file may not exist, or there could be a permission problem.   Make sure you have proper authorization on the server and the server is properly configured.  File activity incomplete. 1 file(s) or folder(s) were not completed.  Files with errors: 1 /html

    Nobody can tell you anything without knowing exact site and server specs, but I would suspect that naming the folder "html" wasn't the brightest of ideas, since that's usually a default (invisible) folder name existing somewhere on the server and the user not having privileges to overwrite it.
    Mylenium

  • My computer suddenly refuse to start. When I turn it on it gives the startup sound but the screen is grey and after a while a little folder icon with a question mark inside turns up. It doesn't blink. What to do? Nothing happens if I try to start up from

    As I say my computer, a mac mini refuse to start. When I turn it on it gives the startup sound and the screen turns grey and stay that way for a long time. And in the end a small folder icon with a question mark inside (it doesn't blink) turns up in the middle of the screen.
    I have tried to start up from the installation CD holding down the C key on the keyboard. Same result. I have tried different key combinations while starting up. No result or rather same result. Nothing. Is the computer suddenly dead?
    I was about to buy a new computer but I need access to my data on this one (I write this on an iPad) but hven't yet found a way.
    Anybody have any good advice?
    I thought it was a software problem, that the computer couldn't find the startup software or something and maybe it is, but I am beginning to fear that it could be a hardware problem.

    You need to re install OSX. If you have the dmg file downloaded via torrentz this is how you can create a bootable external HD or Flash drive (8 GB+)
    https://discussions.apple.com/message/23957654#23957654
    Peace
    Harry

  • My sons iPod touch stopped working, it won't charge in a docking station and the computer/itunes won't recognize it when connected.  We have tried holding the power and home button at the same time for several seconds, and the screen still stays black

    My sons iPod touch stopped working, it won't charge in a docking station and the computer/itunes won't recognize it when connected.  We have tried holding the power and home button at the same time for several seconds, and the screen still stays black.  Thanks!

    Hello skdog I possibly think your ipod touch is black because it has not charged. If your dock is broken it might just mean the dock will be broken and so might be the USB port. You should see an Apple shop nearby and hand it over and see what they can do. I hope this information works!

  • I have uninstalled and reinstalled iTunes multiple times.  When I connect my iPod Classic I get the following message:  The software for this iPod is not installed correctly.  Please reinstall iTunes to install the required software.  Any ideas?

    I have uninstalled and reinstalled iTunes multiple times.  When I connect my iPod Classic I get the following message:  The software for this iPod is not installed correctly.  Please reinstall iTunes to install the required software.  Any ideas?

    Assuming you have windows, try uninstalling iTunes and all of its components as by following this guide exactly: Windows XP or Windows Vista/7, then reinstall iTunes.  You must follow this guide exactly or it will not be successful.  Note: uninstalling iTunes will only remove the application; it will not touch your iTunes library or data.

  • 3rd gen iPod touch. I just get a blank screen (after a few secs of the apple symbol) when it is switched on or when connected for charging. I know the connections are OK. Suggestions/help please

    3rd gen iPod touch. I just get a blank screen (after a few secs of the apple symbol) when it is switched on or when connected for charging. I know the connections are OK. Suggestions/help please

    I took the iPod to the local Apple shop. The guy put the iPod onto a docking station and checked it - answer "connections are OK". I have used the link before but have not gone through all its suggestions (although picked on the most relevant ones). I may have to go back. Thanks again for your suggestions

  • Transfered Videos to Library it shows on my Iphone 4s but in GREY [ on the pc when connected] and thus I cannot play the video, WHY

    Transfered Videos to Library it shows on my Iphone 4s but in GREY [ on the pc when connected] and thus I cannot play the video on IPHONE 4s, WHY??

    Sorry it IS ios 7.04

  • I just get the new iPad air and when connecting it to my laptop, why the battery is not charging?

    just get the new iPad air and when connecting it to my laptop, why the battery is not charging?

    A lot of computers don't provide enough power to their USB ports to charge the iPad at a sufficient rate - it may still be charging slowly, and should be a bit quicker if the iPad's screen is off (if you leave it for a while and then disconnect it from your computer you may find that it's battery percentage has gone up). The wall charger is usually the most efficient way to charge the iPad.

  • I have a problem with my iPad 1 st. the problem is that I unable to locate even when connected to a WiFi network and the location is activated and restore and same thing happens .. may be I need help!  Thank you ...!

    I have a problem with my iPad 1 st. the problem is that I unable to locate even when connected to a WiFi network and the location is activated and restore and same thing happens .. may be I need help!
    Thank you ...!

    Hi there beni_m,
    You may find the troubleshooting steps in the articles below helpful.
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/ts3281
    iOS: Device not recognized in iTunes for Mac OS X
    http://support.apple.com/kb/ts1591
    iOS: Device not recognized in iTunes for Windows
    http://support.apple.com/kb/ts1538
    -Griff W. 

  • HT201263 my ipad still will not start. When connected to wall charger it shows the connect to itunes. When connected to computer it is a black screen and slightly blinks

    my ipad still will not start. When connected to wall charger it shows the connect to itunes. When connected to computer it is a black screen and slightly blinks

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Home button not working or unresponsive, fix
    http://appletoolbox.com/2013/04/home-button-not-working-or-unresponsive-fix/
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
     Cheers, Tom

  • HT1414 forgot iphone 4 passcode  and I cant restore when connected to my computer. I get a message that says cant restore until I turn off find my iphone for the device, but I did go into icloud and erased the device. help plz!

    I forgot iphone 4 passcode  and I cant restore when connected to my computer. I get a message that says cant restore until I turn off find my iphone for the device, but I did go into icloud and erased the device. help plz!

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    7. iOS - Unable to update or restore
    Forgotten Restrictions Passcode Help
                iPad,iPod,iPod Touch Recovery Mode
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
    Also, see iTunes- Restoring iOS software.

  • My MacBook Air becomes unresponsive when logging in, and I decided to reinstall OS X Lion. When running the installer from OS X Recovery, it gave the error message "An error occurred while preparing the installation. Try running this application again."

    My MacBook Air becomes unresponsive when logging in, and I decided to reinstall OS X Lion. When running the installer from OS X Recovery, it gave the error message "An error occurred while preparing the installation. Try running this application again."
    Checking in the log revealed the following error:
    Can not connect to /var/run/systemkeychaincheck.socket: No such file or directory
    Error!! Error Domain=NSURLErrorDomain Code=-1202 "UNTRUSTED_CERT_TITLE" UserInfo=0x1086bec80 {NSLocalizedDescription=UNTRUSTED_CERT_TITLE, NSLocalizedFailureReason=UNTRUSTED
    The rest of the line is cutted off. Does anyone know what went wrong and how to fix it ?

A: my MacBook Air becomes unresponsive when logging in, and I decided to reinstall OS X Lion. When running the installer from OS X Recovery, it gave the error message "An error occurred while preparing the installation. Try running this application again."

I encountered the same exact problem when I attempted to re-installed OSX Lion on an old laptop. The date was set back in 2000, which rendered the certificate obsolete. Here's how I fixed it:
From the recovery menu, select the Terminal application. Run the 'date' command to confirm the date is wrong, then set the correct date using this command: date {month}{day}{hour}{minute}{year}
e.g. date 1219195613
Exit terminal (type exit). Retry the installation.

I encountered the same exact problem when I attempted to re-installed OSX Lion on an old laptop. The date was set back in 2000, which rendered the certificate obsolete. Here's how I fixed it:
From the recovery menu, select the Terminal application. Run the 'date' command to confirm the date is wrong, then set the correct date using this command: date {month}{day}{hour}{minute}{year}
e.g. date 1219195613
Exit terminal (type exit). Retry the installation.

Maybe you are looking for

  • Problem with pla

    Sorry to be posting this I have checked the knowledge base and looked around in the fourms. I have a Creative Nomad jukebox Zen Xtra and my problem is this. I turn it on and it will get past the logo and to the screen where it says music libray right

  • Questions about the insignia 32 inch 1080 p hdtv

    Hey. I am looking to purchase a new tv but I have a few questions. 1) Is this tv a good one for gaming? I have an xbox 360 and want to know how it would play. 2) Does it have a slot for an optical audio cable? I have an external sound card with 5.1 s

  • How to close FPGA reference out from different while loop

    Hi Friends,               I`ve different while loop which performs the FPGA read port on different loops I`ve the FPGA out on every terminal at the end of the while loop. I`ve just connected the merge error function in which all the error out of the

  • Regarding spaces in the last in of TXT file in the outbound interface

    Hi ,     I am doing one outbound file, which will have 100 characters length, But last 25 characted i have to fill spaces. When i m trying to fill those 25 chatacters with spaces its not working, i tryed by creating a variabnle of 25 chracted space,

  • Transparency???JColorChooser

    Private JColorChooser chooser; Color col=chooser.getColor(); But the problem here is that chooser handles color without transparency. How can i make it to handle color with transparency, is there any other function?