Recordset customer is not being filled
sc_lookup (customer, “SELECT * FROM customers WHERE id = ‘2’”);
if (!empty({customer})) {
echo customer[0][0];
}else{
echo ‘failed’;
}
Recordset customer is not being filled
sc_lookup (customer, “SELECT * FROM customers WHERE id = ‘2’”);
if (!empty({customer})) {
echo customer[0][0];
}else{
echo ‘failed’;
}
for sc_lookup you have to try this with your if
if(isset({customer[0][0]}))
{customer} is better used for a sc_select