put single quotes around your query.
mysql_query("UPDATE testdb SET no='no+1'");
That should fix it, but another thing you may want to try in the future is simply echoing code to see if that if is even getting evaluated the way you want.
if($no==1){
mysql_query("UPDATE testdb SET no='no+1'") or die(mysql_error());
echo "UPDATE part";
$nej = 0;
}
I also added the mysql_error (although the problem is probably you missing single quotes). But mysql_error is a handy tool to remember for future problems.
Cgraz