Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php forech pdo

$users       = $dbh->query($sql);
foreach ($users as $row) {
    print $row["name"] . " - " . $row["sex"] . "<br/>";
}

$users->execute();

foreach ($users as $row) {
    print $row["name"] . " - " . $row["sex"] . "<br/>";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #forech #pdo
ADD COMMENT
Topic
Name
4+6 =