Why do I get undefined variable errors when all the variables are defined below e.g. 'client_id' and 'order_limit' etc?
if (isset($id)) {
$sql = ("SELECT * FROM client WHERE client_id = '".$_GET["id"]."'");
$result = mysql_query($sql);
if ($row = mysql_fetch_assoc($result)) {
$client_id = $row["client_id"];
$client_name = htmlentities($row["client_name"]);
$order_limit = number_format($row["order_limit"]);
$notes = htmlentities($row["notes"]);
} else {
die();
}
}