Simple code help needed for " http://12.13.14.15/table1.php?Name=Billy&Number=6 " : I am in need of some help, please? I can successfully do a MySQL query using:

IP_Address/fund_list.php?Id_Number=555666

$ID = $_GET['Id_Number'];
$sql = "SELECT * FROM fund_list WHERE Number = ".$ID;

-----------------------------------------

Now I want to use 2 different things in my web call. Like:

IP_Address/fund_list.php?Id_Number=555666&Name=Billy

But I don't know how to write the 'get' line below.

$ID = $_GET['Id_Number'] & $Name = $_GET['Name'];   <-- Does not work


I would think the SQL select statement would be:

$sql = "SELECT * FROM fund_list WHERE TheNumber = .$ID AND TheName = .$Name";


All the things I look up online, the syntax is overly confusing, I can't dissect it and make something work. Thank you. 









