Sorry, but your code is plain wrong (you're doing mysql_query twice).
I guess you meant
$sql="UPDATE customers SET password='$id' WHERE c_number='$users1' ";
$result = mysql_query($sql);
if (mysql_error()) die('Error, You have not used our services before, so no details for you to visit and explore');
To quote the PHP manual: *This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information*
But anyway, let's make this work (and more secure):
$sql="UPDATE customers SET password='".myqsl_escape_string($id)."' WHERE c_number='".mysql_escape_string($users1)."' ";
This prevents SQL injection, by escaping every possible special char in both $id and $users1 (i suspect at least one of these is user submitted data).
$result = mysql_query($sql);
if ($result===false) die('Error, You have not used our services before, so no details for you to visit and explore');
The key here is to use the result of mysql_query, which is FALSE if the query failed. It is good practice to use the '===' comparator here, since we don't want to look for 0 or an empty string, but only the boolean false.
For more information, see the PHP mysql_query manual page