Subversion Repositories php_library

Rev

Rev 54 | Rev 58 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 54 Rev 55
Line 11... Line 11...
11
   Revision 10 - 20090115 - R. W. Rodolico
11
   Revision 10 - 20090115 - R. W. Rodolico
12
   Modified editData routine to grab display query from table definition if key field not defined in complex join definition
12
   Modified editData routine to grab display query from table definition if key field not defined in complex join definition
13
 
13
 
14
*/
14
*/
15
 
15
 
16
   define(REVISION, '2.18');
16
   define('REVISION', '2.18');
17
   define( HTML_QUOTE_CHAR, '"' );
17
   define( 'HTML_QUOTE_CHAR', '"' );
18
   define( CONSTANT_NO_VALUE_DROPDOWN, '--------' );
18
   define( 'CONSTANT_NO_VALUE_DROPDOWN', '--------' );
19
 
19
 
20
   $LOGIN_PAGE = 'login.html';
20
   $LOGIN_PAGE = 'login.html';
21
   
21
   
22
   function getParameter( $parameterName, $default = '' ) {
22
   function getParameter( $parameterName, $default = '' ) {
23
      if (isset($_POST[$parameterName])) {
23
      if (isset($_POST[$parameterName])) {
Line 155... Line 155...
155
   */
155
   */
156
 
156
 
157
      function queryDatabaseExtended($query,$assoc=1,$showErrors=true) {
157
      function queryDatabaseExtended($query,$assoc=1,$showErrors=true) {
158
      // print "<pre>In Query database\n---------------------\n$query\n---------------------\n</pre>";
158
      // print "<pre>In Query database\n---------------------\n$query\n---------------------\n</pre>";
159
      printLog( $query );
159
      printLog( $query );
-
 
160
      // we use the @ symbol to suppress warnings and errors when calling mysql_query
160
      $r = @mysql_query($query);
161
      $r = @mysql_query($query);
161
      if( mysql_errno() ) {
162
      if( mysql_errno() ) {
162
         $error = 'MYSQL ERROR #'.mysql_errno().' : <small>' . mysql_error(). "</small><br><VAR>$query</VAR>";
163
         $error = 'MYSQL ERROR #'.mysql_errno().' : <small>' . mysql_error(). "</small><br><VAR>$query</VAR>";
163
         if ( $showErrors ) echo($error);
164
         if ( $showErrors ) echo($error);
164
         return FALSE;
165
         return FALSE;