// setup the conection to the database server, //if the attempt fails exit and send the message back to the arduino $connect = mysql_connect($hostname, $username, $password) or die( '<'."can't connect to DB" .'>'. mysql_error());

//*******************************************************************// Global configuration (adjust to reflect your setup)//*******************************************************************// if defined, will fire a notification when any door/device stays open more than the specified number of minutes//#define NOTIFICATIONS_WATCHDOG_MINUTES 5

// if defined, will fire a notification every time and as soon as any door/device gets opened//#define NOTIFICATIONS_OPEN

// if defined, will use SMTP with Authentication ( http://stackoverflow.com/questions/14822656/setting-smtp-on-php-ini-with-authentication) to SMS Email with Authentication#define SMS_AUTHENTICATION_NOTIFICATIONS

// if defined, will fire notifications using SMTP notifications//#define SMTP_NOTIFICATIONS

// if defined, will use SMTP with Authentication (http://stackoverflow.com/questions/14822656/setting-smtp-on-php-ini-with-authentication) to SMTP Email with Authentication//#define SMTP_AUTHENTICATION_NOTIFICATIONS

// if defined, will use WAMP/MAMP ( http://www.yetihacks.com/2013/arduino-mysql-and-php.html ) to write Open/Close Events to MySQL, implied NOTIFICATIONS_OPEN.#define EVENT_LOGGING // Log State changes (Open to Close and Close to Open).//*******************************************************************

// EthernetShield IP address (DHCP reserved, never allocated to anyone else). This is the internal// network IP address you want your Arduino assigned. This is not the address you will be accessing// your Arduino from the iPhone application or internet ... You need to configure NAT forwarding// on your home router to do that. See http://en.wikipedia.org/wiki/Port_forwarding for more details.

// *** IMPORTANT NOTE ***//// THE ARDUINO ETHERNET SHIELD RESERVES DIGITAL PINS 10, 11, 12, 13 AS WELL AS// ANALOG PINS 0, 1, THEREFORE YOU SHOULD NOT USE ANY OF THOSE PINS FOR YOUR DEVICE(S) OR DOOR(S)

// Analog boundary value (0-1023) used to distinguish between device/door status == opened and closed. Only applicable// when STATUS_STRATEGY_3VCLOSED_5VOPENED or STATUS_STRATEGY_5VCLOSED_3VOPENED is being used.//#define STATUS_OPEN_TRESHOLD 1000

// if all door/devices are closed, reset notificationSent semaphore and timer so that further notifications // can be sent. This is done to avoid floOding recipient with notifications for a same event occurrence. if (!openDetected) { notificationSent = false; initialOpen = NULL; delay(500); }}#endif

// if all door/devices are closed, reset notificationSent semaphore so that further notifications // can be sent. This is done to avoid flooding recipient with notifications for a same event occurrence. if (!openDetected) { notificationSent = false; delay(500); }}#endif

Ok i found out i cannot use the wifi shield but its ok I will just run the cat5 cable. Can you maybe help me rewrite the code so i can use my Arduino UNO with the ethernet shield? I downloaded the code but it did not work, I got a ton of errors.