Hi, use echo mysql_error(); for exact error in your code.
Cool Moe <[EMAIL PROTECTED]> wrote: There, the manual says that the function is only good for the result of a SELECT query. You may also wish to look at the comments at the bottom of the page, where many users detail how they figured something out. (hey if you figure this out, maybe you'd like to add one yourself ;) >> it mysql_num_rows only work with selecet statement if you want to get report about delete update use mysql_affected_rows(); zareef ahmed __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/