本文整理匯總了PHP中event::setEventID方法的典型用法代碼示例。如果您正苦於以下問題:PHP event::setEventID方法的具體用法?PHP event::setEventID怎麽用?PHP event::setEventID使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類event
的用法示例。
在下文中一共展示了event::setEventID方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: isset
<?php
//require_once('../bootstrap.php');
//session_start();
require_once 'classes/connection.class.php';
require_once 'classes/event.class.php';
require_once 'classes/locate.class.php';
$event_id = isset($_GET['event_id']) ? $_GET['event_id'] : '';
$objdelete = new event();
$objdelete->setEventID($event_id);
$flag = $objdelete->deleteEvent();
/*echo $objdelete->sql;
exit;*/
/*echo '<pre>';
print_r($flag);
echo'</pre>';
exit;*/
if ($flag) {
//echo "post already deleted";
new Locate('index.php?page=event&action=view');
$_SESSION['msg'] = $objdelete->msg = "Event deleted sucessfully";
} else {
header('location:../index.php?page=event&action=view&err=eventnotdeleted');
}
示例2: isset
<?php
include 'classes/connection.class.php';
include 'classes/event.class.php';
$event_id = isset($_GET['event_id']) ? (int) $_GET['event_id'] : '';
$objevent = new event();
$objevent->setEventID($event_id);
$views = $objevent->viewEvent();
/*echo '<pre>';
print_r($views);
echo '</pre>';*/
foreach ($views as $value) {
?>
<form name="form1" method="post" action="process/process_update_event.php">
<table class="table" width="669" border="1">
<tbody>
<tr>
<th colspan="2" scope="row">Please Edit Event</th>
</tr>
<tr>
<th scope="row">Title</th>
<td>
<input type="text" name="title" value="
<?php
echo $value['event_title'];
?>
"/>
</tr>
<tr>