Hi
I need to display below with values from mysql
$resource = $conn->query("SELECT * FROM table");
while ( $rows = $resource->fetch_assoc() ) {
$title=$rows["title"];
$test = ["array"=>[
"modele"=>"1",
"options"=>[
"option1"=>"1",
"list"=>[
[
"title"=>"$title",
]
]
]
]];
}
How I can display a list of the title values inside the array ?
Thanks for your help !
I need to display below with values from mysql
$resource = $conn->query("SELECT * FROM table");
while ( $rows = $resource->fetch_assoc() ) {
$title=$rows["title"];
$test = ["array"=>[
"modele"=>"1",
"options"=>[
"option1"=>"1",
"list"=>[
[
"title"=>"$title",
]
]
]
]];
}
How I can display a list of the title values inside the array ?
Thanks for your help !