Talk:Data manipulation API: Difference between revisions
From MoodleDocs
m (moved Talk:Data modification API to Talk:Data manipulation API) |
David Mudrak (talk | contribs) |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
: No.--[[User:Tim Hunt|Tim Hunt]] 13:19, 22 June 2011 (WST) | : No.--[[User:Tim Hunt|Tim Hunt]] 13:19, 22 June 2011 (WST) | ||
== I found typo on section of Using recordsets. == | |||
Hi, | |||
Thank you for provide the great Data manipulation API document. | |||
I found typo on section of Using recordsets. | |||
<syntaxhighlight lang="php"> | |||
$rs = $DB->get_recordset(....) { | |||
foreach ($rs as $record) { | |||
// Do whatever you want with this record | |||
} | |||
$rs->close(); | |||
</syntaxhighlight> | |||
{ -> ; ? | |||
<syntaxhighlight lang="php"> | |||
$rs = $DB->get_recordset(....); | |||
foreach ($rs as $record) { | |||
// Do whatever you want with this record | |||
} | |||
$rs->close(); | |||
</syntaxhighlight> | |||
Best regards. | |||
: Fixed, thanks! --[[User:David Mudrak|David Mudrak]] ([[User talk:David Mudrak|talk]]) 17:38, 8 June 2022 (UTC) |
Latest revision as of 17:38, 8 June 2022
Don't know the DML functions very well, but there shouldn't be an ' AND' after 'bar', should there?
$result = $DB->get_records($table,array('foo' => 'bar AND' , 'jon' => 'doe'));
- No.--Tim Hunt 13:19, 22 June 2011 (WST)
I found typo on section of Using recordsets.
Hi, Thank you for provide the great Data manipulation API document. I found typo on section of Using recordsets.
$rs = $DB->get_recordset(....) {
foreach ($rs as $record) {
// Do whatever you want with this record
}
$rs->close();
{ -> ; ?
$rs = $DB->get_recordset(....);
foreach ($rs as $record) {
// Do whatever you want with this record
}
$rs->close();
Best regards.
- Fixed, thanks! --David Mudrak (talk) 17:38, 8 June 2022 (UTC)