Created
March 11, 2015 09:12
-
-
Save lukluk/6842aa161d10ddd5976b to your computer and use it in GitHub Desktop.
fixed voucher kosong electro run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
setcookie("payment_method","",time()-1); | |
include_once "include/seating.lib.php"; | |
include_once "include/class_admin.php"; | |
include_once "include/class_organization.php"; | |
include_once "include/class_user.php"; | |
include_once "include/class_event.php"; | |
$query="select * from ee_events_attendees where event_id='2696'"; | |
$discount_query = $database->database_prepare($query)->execute(); | |
while($row = $database->database_fetch_assoc($discount_query)){ | |
$a=$database->database_prepare("select * from elektro_contact_2015 where attendee_id='$row[attendee_id]'")->execute(); | |
$b=$database->database_fetch_assoc($a); | |
if(count($b)<=0){ | |
$aa=$database->database_prepare("select * from ee_events_ticket_type where event_ticket_id=?")->execute($row['event_ticket_id']); | |
$ticket=$database->database_fetch_assoc($aa); | |
$database->database_prepare("insert into elektro_contact_2015 set attendee_id=? , ticket_id=?, ticket_type=?,event_id=?,cont_firstname=?, | |
cont_lastname=?,cont_email=?,cont_id_card='?',cont_phone=?")->execute($row['attendee_id'],$row['event_ticket_id'],$ticket['event_ticket_name'],$row['event_id'],$row['attendee_first_name'], | |
$row['attendee_last_name'],$row['attendee_email'],$row['identity_id'],$row['no_telp']); | |
} | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment