password() problem

A

Anonymous

Guest
Hi I dont understand why this code fails ? Can anyone help me ?
---------------------------------------------
$sirket = "UPDATE `sirke` SET `sifre` =password(".$fre."), `email` ='".$to."' WHERE `g_ifre` =" .$gifre;
$del = "UPDATE sirke SET gifre = 0 WHERE sifre =password(".$fre.")" ;
mysql_query ($del);
----------------------------------------------
it encodes the $fre but not SET ing the gifre to '0'
 
Why in the first query there is field g_ifre, but in the seond - gifre? You really have 2 almoust similar field names or it's syntax error?

Firstly you must check whether these queries really works.
 
Back
Top