Check your query with the following statement:
$result = mysql_query($query) or die ("Error in query: $query. ".mysql_error());
So you'll come to know the error.
rajarajan07
Nearly a Posting Virtuoso
1,447 posts since May 2008
Reputation Points: 167
Solved Threads: 239