CMD line post-commit script worked and updated ticket #521. This is a test from actua...
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / IConstants.java
index 5902380..21987a7 100644 (file)
@@ -6,4 +6,8 @@ package net.sourceforge.phpdt.sql;
  */
 public interface IConstants {
   public boolean DEBUG = false;
+  public final String PHPFILEHEADER = "<?php%%NL%%echo '<html>';%%NL%%echo '<head>';%%NL%%echo '<meta name=\"PHPEclipse-generated\" content=\"PHPEclipse\">';%%NL%%echo '<title>Database access</title>';%%NL%%echo '</head><body>';%%NL%%?>%%NL%%";
+  public final String PHPDBCONNHEADER = "%%NL%%$dbconn = mysql_connect(%%CONNLIST%%) or die(\"Could not connect to database\");%%NL%%$db = mysql_select_db(%%DBNAME%%, $dbconn) or die(\"Database not found\");%%NL%%";
+  public final String PHPDBRESULTHEADER = "$result = mysql_query(%%QUERY%%);%%NL%%";
+  public final String PHPDBCLOSEHEADER = "mysql_close($dbconn);%%NL%%exit;%%NL%%?>%%NL%%";
 }