daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest May 20th, 2018 119 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     $result = mysql_query('SELECT * FROM events WHERE name="'.$name.'" ORDER BY name');
  2.     if (mysql_num_rows($result) <= 0) {
  3.         $event->name = $name;
  4.         $event->status = $status;
  5.         $event->event_date = $event_date;
  6.         $event->start_date = $start_date;
  7.         $event->end_date = $end_date;
  8.         $event->address = $address;
  9.         $event->city = $city;
  10.         $event->state = $state;
  11.         $event->zip = $zip;
  12.         $event->use_grad_date = $use_grad_date;
  13.         $event->Save();
  14.  
  15.     } else {
  16.         while($row = mysql_fetch_array($result)) {
  17.             $sel_event = $row['eventsid'];
  18.             $sel_event_form = 1;
  19.         }
  20.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top