~hazon/hazon/hazon_newest

« back to all changes in this revision

Viewing changes to Administrators/admin_subpages/removeschool.php

  • Committer: Liel Fridman
  • Date: 2010-01-13 15:01:18 UTC
  • Revision ID: liel@home-savta-20100113150118-4e9kiwl372dylhf2
Returning to MySQL

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
require('../../config_db.php');
5
5
require('timer.php');
6
6
$plx = new PHPLiveX();
7
 
$link = pg_connect("host=$pgsql_host port=$pgsql_port dbname=$pgsql_database username=$pgsql_username password=$pgsql_password",PGSQL_CONNECT_FORCE_NEW) or die('שגיאת PostgreSQL: לא יכול להתחבר למסד הנתונים. האם אתה בטוח שהוא קיים?');
 
7
$link = pg_connect("host=$pgsql_host port=$pgsql_port dbname=$pgsql_database user=$pgsql_username password=$pgsql_password",PGSQL_CONNECT_FORCE_NEW) or die('שגיאת PostgreSQL: לא יכול להתחבר למסד הנתונים. האם אתה בטוח שהוא קיים?');
 
8
pg_set_client_encoding($link, "UNICODE");
8
9
pg_query($link,'DELETE FROM hazon_schools WHERE code="'.pg_escape_string($_POST['remove_code']).'"') or die ('Error!');
9
10
pg_close($link);
10
11
SchoolsDB::RemoveSchool($_POST['remove_code']);