PHP Classes

Using MSSQL functions instead of MYSQL functions w/autocomplete

Recommend this page to a friend!

      PHP Forms Class with HTML Generator and JavaScript Validation  >  PHP Forms Class with HTML Generator and JavaScript Validation package blog  >  Upcoming Visual HTML ...  >  All threads  >  Using MSSQL functions instead of...  >  (Un) Subscribe thread alerts  
Subject:Using MSSQL functions instead of...
Summary:Some queries work perfectly, other's dont
Messages:4
Author:jeff g
Date:2007-03-02 17:11:38
Update:2007-05-09 19:53:28
 

  1. Using MSSQL functions instead of...   Reply   Report abuse  
Picture of jeff g jeff g - 2007-03-02 17:11:38
Hi,

I'm a newbie with PHP and web development in general so forgive me if I ask something that a more seasoned developer would already know and not need to ask.

However, I'm running SQL Server 2005 and the basic form class is working perfectly with respect to me being able to validate data and then create my own connection to the DB to insert data.

However with "auto-complete plug-in input and MySQL database queries", the following thing happened: I was able to change all of the functions to mssqlXXX from mysqlXXX. If I click on the ellipses (...) I get a drop down list indicating that queries are being executed successfully on the server.

However, if I type in one or two letters next to location, it looks like its processing something and then I get a server timeout issue.

Why is the drop down db driven part working but the other not?

Any thoughts or suggestions would be greatly appreciated!

Thanks,

Jeff

  2. Re: Using MSSQL functions instead of...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-03-02 19:43:50 - In reply to message 1 from jeff g
There is a variant of the auto-complete plug-in that uses the Metabase database abstraction API. Metabase supports the most important databases besides MySQL including Microsoft SQL server, Oracle, PostgreSQL, etc..

  3. Re: Using MSSQL functions instead of...   Reply   Report abuse  
Picture of Irwin Fletcher Irwin Fletcher - 2007-05-09 16:18:10 - In reply to message 2 from Manuel Lemos
What is it called / where can we find it?

  4. Re: Using MSSQL functions instead of...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2007-05-09 19:53:28 - In reply to message 3 from Irwin Fletcher
That plug-in class script is named form_metabase_auto_complete.php and comes with the forms package . Take a look at the test_metabase_auto_complete.php example script. You also need the Metabase package:

phpclasses.org/metabase