I m trying to execute some code when image is not loaded. I m using following code:

&lt;script language="javascript"&gt;

object = new Image();
object.src = '$imageurl';

if(!object.complete)
{
    //do something
}

&lt;/script&gt;


But this is not working in Facebook. Please help me.


Question: Connect to Microsoft Access database via Microsoft SQL Server / MySQL
Answer: I thought you could use php to connect to an Access database.

Here's the php manual on this topic: http://php.net/manual/en/function.odbc-connect.php

And a code sample from that page connecting to Access database.

&lt;?php
// Microsoft SQL Server using the SQL Native Client 10.0 ODBC Driver - allows connection to SQL 7, 2000, 2005 and 2008
$connection = odbc_connect("Driver={SQL Server Native Client 10.0};Server=$server;Database=$database;", $user, $password);

// Microsoft Access
$connection = odbc_connect("Driver={Microsoft Access Driver (*.mdb)};Dbq=$mdbFilename", $user, $password);

// Microsoft Excel
$excelFile = realpath('C:/ExcelData.xls');
$excelDir = dirname($excelFile);
$connection = odbc_connect("Driver={Microsoft Excel Driver (*.xls)};DriverId=790;Dbq=$excelFile;DefaultDir=$excelDir" , '', '');
?&gt;