Hello , how can i add multiple where conditions in this script? like $check_where1,$check_where2,$check_where3 and combine them? :((( and the conditions are variables… i have problem with single and double quotes_ how can i make easy?
$check_where1 = “field = ‘$condition1’”;
$check_where2= “field = ‘$condition2’”;
$check_where3 = “field = '$condition’3”;
/**
- Check for an existing record
*/
// SQL statement parameters
$check_table = ‘my_table’; // Table name
$check_where = “field = ‘condition’”; // Where clause
// Check for record
$check_sql = ‘SELECT *’
. ’ FROM ’ . $check_table
. ’ WHERE ’ . $check_where;
sc_select(dataset, $check_sql);