Look like besides your quoting being all messed up and the code broken
Try this
$result = mysqli_query ($link, "select CustomerID from CompanyInfo where CompanyName = '$CompanyName'");
$row = mysqli_fetch_row($result);
mysqli_query() expects at least 2 parameters
$link being your connection string im sure is called somewhere in the code. If its not that is probably Problem #1
that should give you output from:
echo "row: " .$row[0];
Which you can pass to a session.
$_SESSION["CustomerID"] = $row[0];