<?
$sql = "SELECT * FROM `table`";
foreach($pdo->query($sql) as $result) {
$output .= $result["row"] . ',';
# $output .= "'". $result["row"] . "',"; // Für SQL "NOT IN ($output)"
}
echo rtrim($output,',');
?>
Gibt die Werte einer Spalte durch Komma getrennt aus
Output comma separated array from PDO table
Output comma separated array from PDO table
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.