PHP - Get values from Array
- by danit
I am trying to get a record from a database using an sql lookup (sql1). This then returns as an array which is fine, but I need to use part of the array for my next stage.
$opt=get_records_sql($sql1);
//Diags for SQL content
print_object($opt);
$n = count($opt);
if (empty($opt))
{
echo 'No options selected';
…