$check_sql = “SELECT field01, field02, field03, field04, … from sometable;”;
sc_lookup(rs, $check_sql);
How can i get the value of “field02” by acessing it by its index name?
$field02 = {rs[0][[B]"field02"[/B]]};
instead of this?
$field02 = {rs[0][1]};
Like in this php exemple
http://www.w3schools.com/php/php_mysql_select.asp
while($row = $result->fetch_assoc()) {
echo "id: " . $row["[B]id[/B]"]. " - Name: " . $row["[B]firstname[/B]"]. " " . $row["[B]lastname[/B]"]. "<br>";
}