Problem solved succesfully after changed the query integer apostrofyless.. and printed the mysql_errno() and mysql_error()... Remember: -In the script languages as php the apostrofy ' or " or sg. like these means the string marker... -While ure developing show all error codes and messages... -If ur query contains errors u'll not get the resource id to use just a false boolean... -..and always check u don't have empty variables... :D Let's ride PHP! Bálint Horváth (Valentine) On 25 May 2011 06:57, "Negin Nickparsa" <nickparsa@xxxxxxxxx> wrote: > :D > tnx very much > *Notice*: Undefined variable: query in *D:\phpweb\Doctor.php* on line *45* > 1065:Query was empty