First, you assign a string to a variable:
$sql = "INSERT INTO Recipe...";
That is perfectly fine, but then you overwrite that same variable with a new value without using that first value you assigned:
$sql = mysql_query("SELECT * FROM Recipe", $conn) or ...;
And then you use the result of that query (which was stored in
$sql
) and you execute it as a query:
if (!mysql_query($sql,$conn))
That makes little sense. I think perhaps you are a little confused.