17 lines
470 B
PHP
17 lines
470 B
PHP
--TEST--
|
|
INSERT or UPDATE
|
|
--FILE--
|
|
<?php
|
|
include_once dirname(__FILE__) . "/connect.inc.php";
|
|
|
|
for ($i=0; $i < 2; $i++) {
|
|
echo $software->application()->insert_update(array("id" => 5), array("author_id" => 12, "title" => "Texy", "web" => "", "slogan" => "$i")) . "\n";
|
|
}
|
|
$application = $software->application[5];
|
|
echo $application->application_tag()->insert_update(array("tag_id" => 21), array()) . "\n";
|
|
$software->application("id", 5)->delete();
|
|
?>
|
|
--EXPECTF--
|
|
1
|
|
2
|
|
1
|