Autor Zpráva
trsak1
Profil
Píše mi to chybu :
Warning: mysql_query(): Access denied for user 'nobody'@'192.168.12.2' (using password: NO) in /3w/unas.cz/t/tanoth/upravprofil-zpracuj.php on line 83

Warning: mysql_query(): A link to the server could not be established in /3w/unas.cz/t/tanoth/upravprofil-zpracuj.php on line 83
Access denied for user 'nobody'@'192.168.12.2' (using password: NO)

A script:
<?
if(isset($_POST['sent'])) { 
    $heslo1=$_POST['heslo'];
    $heslo2=$_POST['heslo_znovu'];
    $mail=trim($_POST['mail']);
    $web=trim($_POST['web']);
    $skype=trim($_POST['skype']);
    $icq=trim($_POST['icq']);


$sql = "UPDATE 'uzivatele' SET 'heslo' = '".$heslo."', 'mail' = '".$mail."', 'web' = '".$web."', 'skype' = '".$skype."', 'icq' = '".$icq."WHERE 'uzivatele'.id ='".$_SESSION["id"]."'"; 
$sql_result = mysql_query($sql) or die (mysql_error()); 
echo '<font color="green"><b>Upravení profilu bylo úspěšně dokončeno !</b></font>!'; 
} ?>

<form action='upravprofil-zpracuj.php' method='post'>
  <input type='hidden' name='sent' value=''/>
  <b><br>Uživatelské údaje:<br></b>   
    <input type='text' name='predmet' disabled='disabled' value=".$_SESSION['login']."><br>
    <input type='password' name='heslo' maxlength='32'/> Heslo<b><font color='red'>*</font></b> <br>
    <input type='password' name='heslo_znovu' maxlength='32'/> Heslo znovu<b><font color='red'>*</font></b>
   <b> <br>Kontaktní údaje:<br></b>
     <input type='text' value=".$_SESSION['UserMail']." name='mail' maxlength='64' /> Email<b><font color='red'>*</font></b><br>
    <input type='text' value=".$_SESSION['UserWeb']." name='web' maxlength='128' /> Web<br>
    <input type='text' name='icq' maxlength='9' value=".$_SESSION['Usericq']." /> Icq (bez pomlček př.:987654321)<br>
    <input type='text' name='skype' maxlength='64' value=".$_SESSION['UserSkype']." /> Skype<br>
  <input type='submit' name='send' value='Upravit'/>
</form>


Tenhle script sem odnekud sebral a tak tomu nerozumím hlavu ani patu.. Co s tím? Děkuji!
Alphard
Profil
Jste připojen k databázi?
SkIpPeR
Profil
Špatné připojení k MySQL?

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0