mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix example (result rows is case sensitive)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@293393 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f781599a04
commit
b1cfef673b
1 changed files with 4 additions and 4 deletions
|
@ -107,11 +107,11 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
function getFruit($conn) {
|
||||
$sql = 'SELECT name, colour, calories FROM fruit ORDER BY name';
|
||||
$sql = 'SELECT name, color, calories FROM fruit ORDER BY name';
|
||||
foreach ($conn->query($sql) as $row) {
|
||||
print $row['NAME'] . "\t";
|
||||
print $row['COLOUR'] . "\t";
|
||||
print $row['CALORIES'] . "\n";
|
||||
print $row['name'] . "\t";
|
||||
print $row['color'] . "\t";
|
||||
print $row['calories'] . "\n";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue