Need help please, how can update to Dreamweaver database information

Hello, I have a problems with my database, I know that my database works perfectly but when inserting the update to my database of my table form that I created with dreamweaver, I have this error

Warning: mysql_real_escape_string() [Function.MySQL - real-escape-string]: access denied for user 'SYSTEM'@'localhost' (using password: No.) in C:\wamp\www\dwwithphp\TMPbcn96qcid9.php on line 20

I don't know why change my localhost to "SYSTEM@localhost" in the part has declared using ready-made password set up in dreamweaver the password may access all databases in Dreamweaver, so I don't know what I can do?

This all my talble form code:

<? php require_once('Connections/dw_bookstore.php');? >
<? PHP
If (! function_exists ("GetSQLValueString")) {}
function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
If (via 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 "set":
$theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;
break;
}
Return $theValue;
}
}

$editFormAction = $_SERVER ['PHP_SELF'];
If (isset {}
$editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);
}

If ((isset($_POST["MM_update"])) & & ($_POST ["MM_update"] == "form1")) {}
$updateSQL = sprintf ("put a DAY of titles SET title = %s pub_id = %s id_auteur = %s, price = %s, notes = %s, pubdate = %s WHERE title_id = %s",
GetSQLValueString ($_POST ["title"], "text").
GetSQLValueString ($_POST ["'pub_id"], "text").
GetSQLValueString ($_POST ["au_id"], "text").
GetSQLValueString ($_POST ['price'], "double").
GetSQLValueString ($_POST ['notes'], "text").
GetSQLValueString ($_POST ["pubdate"], "date").
GetSQLValueString ($_POST ['id_titre'], "text"));

@mysql_select_db ($database_dw_bookstore, $dw_bookstore);
$Result1 = mysql_query ($updateSQL, $dw_bookstore) or die (mysql_error ());
}

@mysql_select_db ($database_dw_bookstore, $dw_bookstore);
$query_rsPubs = "SELECT pub_id, nom_editeur of publishers ORDER BY nom_editeur ASC";
$rsPubs = mysql_query ($query_rsPubs, $dw_bookstore) or die (mysql_error ());
$row_rsPubs = mysql_fetch_assoc ($rsPubs);
$totalRows_rsPubs = mysql_num_rows ($rsPubs);

@mysql_select_db ($database_dw_bookstore, $dw_bookstore);

$query_rsAuthors = 'SELECT au_id, au_lname, au_fname from authors ORDER BY au_lname ASC';
$rsAuthors = mysql_query ($query_rsAuthors, $dw_bookstore) or die (mysql_error ());
$row_rsAuthors = mysql_fetch_assoc ($rsAuthors);
$totalRows_rsAuthors = mysql_num_rows ($rsAuthors);

$colname_rsTitles = "-1";
If (isset($_GET['title_id'])) {}
$colname_rsTitles = $_GET ['id_titre'];
}
@mysql_select_db ($database_dw_bookstore, $dw_bookstore);
$query_rsTitles = sprintf ("" SELECT * FROM titles WHERE title_id = %s ", GetSQLValueString ($colname_rsTitles,"text")");
$rsTitles = mysql_query ($query_rsTitles, $dw_bookstore) or die (mysql_error ());
$row_rsTitles = mysql_fetch_assoc ($rsTitles);
$totalRows_rsTitles = mysql_num_rows ($rsTitles);
? >
< ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""
<? PHP $pagetitle = "The Night Owl"? >
" < html xmlns =" http://www.w3.org/1999/xhtml " >
< meta http-equiv = "Content-Type" content = "; charset ="/ >
< title > The Night Owl < /title >
< link rel = "stylesheet" href = "styles.css" type = "text/css" media = "screen" / > "
< / head >
< body >

<? PHP include('Includes/header.php');? >

Welcome to < h1 > <? PHP echo $pagetitle? > < / h1 >
< do action = "<?" PHP echo $editFormAction;? ">" method = "post" name = "form1" id = "form1" >
< table align = "center" >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" > Title_id: < table >
< td > <? PHP echo $row_rsTitles ["id_titre"];? > < table >
< /tr >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" > title: < table >
< td > < input type = "text" name = "title" value = "<?" PHP echo htmlentities ($row_rsTitles ['title'], ENT_COMPAT, ");? ">" size = "32" / > < table >
< /tr >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" > Pub_id: < table >
< td > < select name = "id_editeur" >
<? PHP
{}
? >
< option value = "<?" PHP echo $row_rsPubs ['id_editeur']? ' > ' <? PHP if (!) strcmp () ($row_rsPubs ['id_editeur'], htmlentities ($row_rsTitles ['id_editeur'], ENT_COMPAT, "))) {echo"SELECTED";}? > > <? PHP echo $row_rsPubs ["pub_name']? > < / option >
<? PHP
} While ($row_rsPubs = mysql_fetch_assoc ($rsPubs));
? >
< / select > < table >
< /tr >
< tr > < /tr >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" > id_auteur: < table >
< td > < select name = "au_id" >
<? PHP
{}
? >
< option value = "<?" PHP echo $row_rsAuthors ["au_id"]? ' > ' <? PHP if (!) strcmp () ($row_rsAuthors ["au_id"], htmlentities ($row_rsTitles ["au_id"], ENT_COMPAT, "))) {echo"SELECTED";}? > > <? PHP echo $row_rsAuthors ["au_lname"]? > < / option >
<? PHP
} While ($row_rsAuthors = mysql_fetch_assoc ($rsAuthors));
? >
< / select > < table >
< /tr >
< tr > < /tr >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" > price: < table >
< td > < input type = "text" name = "value" = "<?" PHP echo htmlentities ($row_rsTitles ['price'], ENT_COMPAT, ");? ">" size = "32" / > < table >
< /tr >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" valign = "top" > Notes: < table >
< td > < textarea name = cols 'notes' = "50" rows = "5" > <? PHP echo htmlentities ($row_rsTitles ['notes'], ENT_COMPAT, ");? > < / textarea > < table >
< /tr >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" > Pubdate: < table >
< td > < input type = "text" name = "pubdate" value = "<?" PHP echo htmlentities ($row_rsTitles ["pubdate"], ENT_COMPAT, ");? ">" size = "32" / > < table >
< /tr >
< tr valign = 'of basic">
< td nowrap = "nowrap" align = "right" > < table >
< td > < input type = "submit" value = "Update file" / > < table >
< /tr >
< /table >
< input type = "hidden" name = "MM_update" value = "form1" / >
< input type = "hidden" name = "id_titre" value = "<?" PHP echo $row_rsTitles ["id_titre"];? ">" / >
< / make >
< p > < / p >
< p > < / p >

<? PHP include('Includes/footer.php');? >
<! - end page - >
< p > < / p >
< / body >
< / html >
<? PHP
mysql_free_result ($rsPubs);

mysql_free_result ($rsAuthors);

mysql_free_result ($rsTitles);
? >

So please help me thanks for you time!

I really apreciate that...

Learning_men wrote:

I have this error

Warning: mysql_real_escape_string() [Function.MySQL - real-escape-string]: access denied for user 'SYSTEM'@'localhost' (using password: No.) in C:\wamp\www\dwwithphp\TMPbcn96qcid9.php on line 20

Look at the name of the file in the error message. It shows that you are trying to use a temporary file. That's why he tries to access MySQL as SYSTEM. You may not use temporary files to access the database.

Open the Panel preferences in the Edit menu, and then select the preview in browser category. Deselect preview using a temporary file, and then click OK. If your test server is set up correctly, you should now be able to interact properly with the database.

Tags: Dreamweaver

Similar Questions

Maybe you are looking for

  • Video call problem

    HelloMy problem is this: when I start calling with my girlfriend my cam just freeze and stop recording. Problem is, it's hapenning only, when I call with GF. I tried to call someone else, and my camera works perfectly. Skype detects camera all the ti

  • How can I block websites?

    Separated from this thread. I need to know how to block outlook.com my computer and other sites as well.  My boyfriend is using my computer and the connection to Facebook.  Absolutely, I hate Facebook and do not want it on my computer.  I really need

  • How to wipe the laptop Vista Home Premium and replacement/installation with Windows 7 32-bit.

    I am interested in wiping my own laptop (Microsoft Vista) and the installation of Windows 7 32-bit system manufacturer. Can someone help me with this please? Step by step. Thank you!

  • Explorer crashes often

    In recent days, Explorer crash. Before crashing, my computer freezes and the mouse is not responding or is moving too slowly. It happens every day. I use Windows 8 unilingual with Intel Pentium G2010 2.80 GHz CPU and 2 GB of ram.

  • Help to configure the digital signature?

    I have recently been upgraded to Acrobat Pro DC. In my previous version, digital signatures included text indicating that I had digitally signed the document at a specific time and date. I can't seem to do that work now, even though I see a signature