<HTML ><HEAD ><TITLE >fbsql_db_status</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Manual de PHP" HREF="index.html"><LINK REL="UP" TITLE="FrontBase Functions" HREF="ref.fbsql.html"><LINK REL="PREVIOUS" TITLE="fbsql_db_query" HREF="function.fbsql-db-query.html"><LINK REL="NEXT" TITLE="fbsql_drop_db" HREF="function.fbsql-drop-db.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=ISO-8859-1"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Manual de PHP</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.fbsql-db-query.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.fbsql-drop-db.html" ACCESSKEY="N" >Siguiente</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.fbsql-db-status" ></A >fbsql_db_status</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN17652" ></A ><P > (PHP 4 >= 4.1.0)</P >fbsql_db_status -- Get the status for a given database</DIV ><DIV CLASS="refsect1" ><A NAME="AEN17655" ></A ><H2 >Description</H2 >int <B CLASS="methodname" >fbsql_db_status</B > ( string database_name [, resource link_identifier])<BR ></BR ><P > Returns: An integer value with the current status. </P ><P > <B CLASS="function" >fbsql_db_status()</B > requests the current status of the database specified by <TT CLASS="parameter" ><I >database_name</I ></TT >. If the <TT CLASS="parameter" ><I >link_identifier</I ></TT > is omitted the default link_identifier will be used. </P ><P > The return value can be one of the following constants: <P ></P ><UL ><LI ><P > <TT CLASS="constant" ><B >FALSE</B ></TT > - The exec handler for the host was invalid. This error will occur when the link_identifier connects directly to a database by using a port number. FBExec can be available on the server but no connection has been made for it. </P ></LI ><LI ><P > FBSQL_UNKNOWN - The Status is unknown. </P ></LI ><LI ><P > FBSQL_STOPPED - The database is not running. Use <A HREF="function.fbsql-start-db.html" ><B CLASS="function" >fbsql_start_db()</B ></A > to start the database. </P ></LI ><LI ><P > FBSQL_STARTING - The database is starting. </P ></LI ><LI ><P > FBSQL_RUNNING - The database is running and can be used to perform SQL operations. </P ></LI ><LI ><P > FBSQL_STOPPING - The database is stopping. </P ></LI ><LI ><P > FBSQL_NOEXEC - FBExec is not running on the server and it is not possible to get the status of the database. </P ></LI ></UL > </P ><P > See also: <A HREF="function.fbsql-start-db.html" ><B CLASS="function" >fbsql_start_db()</B ></A > and <A HREF="function.fbsql-stop-db.html" ><B CLASS="function" >fbsql_stop_db()</B ></A >. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.fbsql-db-query.html" ACCESSKEY="P" >Anterior</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Inicio</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.fbsql-drop-db.html" ACCESSKEY="N" >Siguiente</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >fbsql_db_query</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.fbsql.html" ACCESSKEY="U" >Subir</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >fbsql_drop_db</TD ></TR ></TABLE ></DIV ></BODY ></HTML >