本文整理汇总了PHP中PMA_Message::affected_rows方法的典型用法代码示例。如果您正苦于以下问题:PHP PMA_Message::affected_rows方法的具体用法?PHP PMA_Message::affected_rows怎么用?PHP PMA_Message::affected_rows使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PMA_Message
的用法示例。
在下文中一共展示了PMA_Message::affected_rows方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testAffectedRows
/**
* affected_rows test
*
* @dataProvider providerAffectedRows
*/
public function testAffectedRows($rows, $output)
{
$this->object = new PMA_Message();
$msg = $this->object->affected_rows($rows);
echo $this->object->addMessage($msg);
$this->expectOutputString($output);
$this->object->display();
}
示例2: PMA_DBI_free_result
$last_message->addParam($insert_id);
$last_messages[] = $last_message;
}
PMA_DBI_free_result($result);
}
// end if
foreach (PMA_DBI_get_warnings() as $warning) {
$warning_messages[] = PMA_Message::sanitize($warning['Level'] . ': #' . $warning['Code'] . ' ' . $warning['Message']);
}
unset($result);
}
unset($single_query, $query);
if ($is_insert && count($value_sets) > 0) {
$message = PMA_Message::inserted_rows($total_affected_rows);
} else {
$message = PMA_Message::affected_rows($total_affected_rows);
}
$message->addMessages($last_messages, '<br />');
if (!empty($warning_messages)) {
$message->addMessages($warning_messages, '<br />');
$message->isError(true);
}
if (!empty($error_messages)) {
$message->addMessages($error_messages);
$message->isError(true);
}
unset($error_messages, $warning_messages, $total_affected_rows, $last_messages, $last_message);
if ($GLOBALS['is_ajax_request'] == true) {
/**
* If we are in grid editing, we need to process the relational and
* transformed fields, if they were edited. After that, output the correct