Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 19 lines (16 sloc) 0.423 kb
1c92f2b @tlhunter Initial Commit of 2009 code
authored
1 <?php
2 #error_reporting(E_ALL);
3
4 function runQuery($query) {
5 $connect = mysql_connect(DB_HOST, DB_USER, DB_PASS);
6 if (!$connect) {
7 die("<div class=\"error\">" . mysql_error() . "</div>");
8 }
9 mysql_select_db(DB_NAME, $connect);
10 $result = mysql_query($query, $connect);
11 return $result;
12
13 }
14
15 function writeFile($text, $filename) {
16 $fp = fopen($filename, 'w');
17 fwrite($fp, $text);
18 fclose($fp);
19 }
Something went wrong with that request. Please try again.