![]()  | 
	 
| DB Form Wizard script | 
| 
		
		 Site Admin 
				
		
  | 
	ensureConnectionAvailable() comes with DB module that should be included.
 
	Depending on DB it can be either db_ibutil.inc, db_myutil.inc, db_pgutil.inc, db_util.inc, db_mssqlutil.inc, db_oracleutil.inc, or db_sqliteutil.inc. Let me know if this was not included in code generated by the wizard.  | 
||||||||||||
| 
	 | 
|||||||||||||
		
		
  | 
	Ok I see what is going on. The script the wizard made is poiting toward the file
 
	require_once $site["path"].'db_myutil.inc'; ensureConnectionAvailable(); However, that function is not in the db_myutil.inc script I did find that function in some of the other ones you listed. I tried to paste the function in the db_myutil script, but then it errors out with Fatal error: Call to undefined function: isconnectionavailable() in ... while seeking another function. This is odd also because I chose the option of a stand alone script..so it should not have written the code that way anyway right? 
  | 
||||||||||||||
| 
	 | 
|||||||||||||||
| 
		
		 Site Admin 
				
		
  | 
	I'm not sure what file you're looking at, but both ensureConnectionAvailable() and isConnectionAvailable() are in all db_xxxx.inc files, including db_myutil.inc in particular. The only exception is db_util.inc which is a common part. 
	 | 
||||||||||||
| 
	 | 
|||||||||||||
		
		
  | 
	I double checked, the file db_myutil_inc does not include the ensureConnectionAvailable function nor does it include a file that includes that function.  I looked in the file as well as viewed the function list in PhPed when I had the file open. Could you post your db_myutil_inc file here? Thanks 
	 | 
||||||||||||
| 
	 | 
|||||||||||||
| 
		
		 Site Admin 
				
		
  | 
	then you need to triple check  
	below is the file listing of db_myutil.inc (Apr 3 2006, 20:46), bundled with PhpED version 4.6: 
  | 
||||||||||||||
| 
	 | 
|||||||||||||||
| DB Form Wizard script | 
	
  | 
||
  
		 | 
	
	Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by


RSS2 Feed