Re: Confused

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>
> So you're script runs long enough for you to check?
>
> Cheers,
> Rob.


if (!$connect_id = ifx_connect("$database@$host", $user, $pass)) {

Checks to see if it doesn't connect.  If it does connect the page continues
to process.  If it doesn't connect the error is displayed.
echo "Unable to connect to Informix Database\n";

If I put in the following:

echo "Point 1";
if (!$connect_id = ifx_connect("$database@$host", $user, $pass)) { // THE
ACTUAL CONNECTION
echo "Point 2";
     echo "Unable to connect to Informix Database\n"; // DISPLAY IF
CONNECTION FAILS
echo "Point 3";
     exit();
  }
echo "Point 4";

The only thing that is output to my screen is "Point 1"

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux