[Solved] Strange behavior with SELECT WHERE A=”$var” SQL [duplicate]
Since I raised the idea, I suppose I should illustrate the use of prepared statements. Using mysqli one would proceed as follows (assuming $connection has been successfully initialized): // The indentation here is purely a matter of personal preference $query = ‘SELECT business_name, vd.ID_Vendor, res.ID_RestaurantEstablishment FROM restaurant res INNER JOIN vendor_data vd ON vd.ID_Vendor = … Read more